vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17571: LJSUP-7170: flush response headers out o...

Committer: vsukhanov
LJSUP-7170: flush response headers out of socket before writing there a response body.
U   trunk/cgi-bin/LJ/Request/Apache2.pm
Modified: trunk/cgi-bin/LJ/Request/Apache2.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache2.pm	2010-10-15 07:23:56 UTC (rev 17570)
+++ trunk/cgi-bin/LJ/Request/Apache2.pm	2010-10-15 08:34:01 UTC (rev 17571)
@@ -376,8 +376,11 @@
 sub LJ::Request::send_http_header {
     my $class = shift;
     # http://perl.apache.org/docs/2.0/user/porting/compat.html#C____r_E_gt_send_http_header___
-    # This method is not needed in 2.0,
-    1
+    # This method is not needed to be called in 2.0,
+    # 
+    # http://perl.apache.org/docs/2.0/user/coding/coding.html#Forcing_HTTP_Response_Headers_Out
+    $class->r()->rflush;
+
 }
 
 

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