Send the HTTP status code in the response
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 22:09:05 +0000 (18:09 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 22:09:05 +0000 (18:09 -0400)
http/output_filter.php
http/root_controller.php

index 6816cc17a196b93109de9f35c2b1c22894c83e84..a6a77e66ce57a93c5a0d1191f91edda1d46e04ef 100644 (file)
@@ -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;
index 6fdc682f48c5783903934b2696322035a36e6d50..b4b87bbab60644d3a353f34a21dba10dde8fbdfe 100644 (file)
@@ -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)