mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 01:04:25 -04:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user