Permalink
Browse files

Status is now set with the 'header' function.

Signed-off-by: Jonathan Hedrén <jonathan.hedren@gmail.com>
  • Loading branch information...
1 parent 86e4242 commit c39f8612d884016c0da047ad8e555c27adf78d2d @jhdrn committed Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Diesel/Response.php
View
@@ -189,13 +189,13 @@ public function send()
if (substr(PHP_SAPI, 0, 3) == 'cgi')
{
- $this->setHeader('Status', self::$statusMessages[$this->status]);
+ header('Status: ' . self::$statusMessages[$this->status]);
}
else
{
header('HTTP/1.1 ' . self::$statusMessages[$this->status]);
}
-
+
$this->sendHeaders();
echo $content;

0 comments on commit c39f861

Please sign in to comment.