vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18859: LJSUP-8566: Set content length to 0 when...

Committer: vad
LJSUP-8566: Set content length to 0 when X-Proxy-Capabilities is in use.
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-04-12 10:17:20 UTC (rev 18858)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-04-12 17:18:45 UTC (rev 18859)
@@ -1476,7 +1476,7 @@
         $mime_type ||= 'image/gif' if $uri =~ m|^/userhead/\d+|; ## default for userheads
 
         LJ::Request->content_type ($mime_type);
-        LJ::Request->header_out("Content-length", $size);
+        LJ::Request->header_out("Content-length", 0); # it's true. Response body and content-length is added by proxy.
         LJ::Request->header_out("Last-Modified", LJ::TimeUtil->time_to_http ($result->{change_time}));
         ## Add Expires and Cache-Control headers
         if ($uri =~ m|^/userhead/\d+|o){

Tags: livejournal, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments