From 6fdd02146e27fca488dab6fe04522632d909f708 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 6 Aug 2011 18:39:00 -0400 Subject: [PATCH] Don't return in FilterOutput() if there's a body already. --- http/output_filter.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/http/output_filter.php b/http/output_filter.php index cc6f201..2d97bcf 100644 --- a/http/output_filter.php +++ b/http/output_filter.php @@ -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); -- 2.43.5