summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-08 14:32:53 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-08 14:32:53 -0700
commit0aafec0e59c3ef48e8e2e6fc4a0b8aa458798619 (patch)
tree9abf12972fde3acdee56e97ab3c708e41f2d72bb
parent32241cd14321f4fe24d689c86fbf74c45c71a53c (diff)
The status message for an HTTP 400 status should always be 'Bad Request', if I'm reading the specification right.
-rw-r--r--modules/rest/libraries/Rest_Exception.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/libraries/Rest_Exception.php b/modules/rest/libraries/Rest_Exception.php
index 505c2e7a..aa5b3281 100644
--- a/modules/rest/libraries/Rest_Exception.php
+++ b/modules/rest/libraries/Rest_Exception.php
@@ -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");
}
}
} \ No newline at end of file