From 41d99c2ba31e312895ffecf2a11dea8b83f6ab43 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 6 Aug 2011 18:09:05 -0400 Subject: [PATCH] Send the HTTP status code in the response --- http/output_filter.php | 1 + http/root_controller.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- 2.22.5