From: Robert Sesek Date: Sat, 6 Aug 2011 22:09:05 +0000 (-0400) Subject: Send the HTTP status code in the response X-Git-Tag: api-2~52 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=41d99c2ba31e312895ffecf2a11dea8b83f6ab43;p=hoplite.git Send the HTTP status code in the response --- diff --git a/http/output_filter.php b/http/output_filter.php index 6816cc1..a6a77e6 100644 --- a/http/output_filter.php +++ b/http/output_filter.php @@ -66,6 +66,7 @@ class OutputFilter $this->_CreateBodyForResponse($request, $response); // Now just output the response. + header("Status: {$response->response_code}", true, $response->response_code); foreach ($response->headers as $header => $value) header("$header: $value"); print $response->body; diff --git a/http/root_controller.php b/http/root_controller.php index 6fdc682..b4b87bb 100644 --- a/http/root_controller.php +++ b/http/root_controller.php @@ -67,7 +67,7 @@ class RootController public function response() { return $this->response; } /*! Sets the UrlMap. */ - public function set_urL_map(UrlMap $url_map) { $this->url_map = $url_map; } + public function set_url_map(UrlMap $url_map) { $this->url_map = $url_map; } /*! Sest the Output Filter. */ public function set_output_filter(OutputFilter $output_filter)