The status message for an HTTP 400 status should always be 'Bad Request', if I'm reading the specification right.

This commit is contained in:
Tim Almdal
2010-06-08 14:32:53 -07:00
parent 32241cd143
commit 0aafec0e59
+1 -1
View File
@@ -24,7 +24,7 @@ class Rest_Exception_Core extends Kohana_Exception {
public function sendHeaders() {
if (!headers_sent()) {
header("HTTP/1.1 " . $this->getCode() . " " . $this->getMessage());
header("HTTP/1.1 " . $this->getCode() . "Bad Request");
}
}
}