Don't return in FilterOutput() if there's a body already.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 22:39:00 +0000 (18:39 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 22:39:00 +0000 (18:39 -0400)
http/output_filter.php

index cc6f2015fd6e4d967491d08510079ac0d3ebaf85..2d97bcf740fc63d6fb05796eefa4d15d17b0c8af 100644 (file)
@@ -57,13 +57,11 @@ class OutputFilter
       if (!$this->_ContinueHandlingResponseForCode($request, $response))
         return;
 
-    // If there's already raw data for the body, just output that.
-    if ($response->body)
-      return;
-
-    // Otherwise, construct the body based on how the Request was received and
-    // any other information in the response.
-    $this->_CreateBodyForResponse($request, $response);
+    // If there's already raw data for the body, just output that. Otherwise,
+    // construct the body based on how the Request was received and any other
+    //  information in the response.
+    if (!$response->body)
+      $this->_CreateBodyForResponse($request, $response);
 
     // Now just output the response.
     header("Status: {$response->response_code}", true, $response->response_code);