diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-19 23:30:09 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-19 23:30:09 -0800 |
commit | c65eca0607572b49ec59a7c387c4b93d15561adb (patch) | |
tree | c2addaeb4706f56fee1dab8b4befe3a67bf7be66 /modules/rest | |
parent | 92d96548e9b365cfa8e888a2103ab09e9f45914a (diff) |
Move rest::send_headers back into Rest_Exception.
Diffstat (limited to 'modules/rest')
-rw-r--r-- | modules/rest/helpers/rest.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 76ecef23..fccb365e 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -49,12 +49,6 @@ class rest_Core { identity::set_active_user($user); } - static function send_headers($exception) { - if (!headers_sent()) { - header("HTTP/1.1 " . $exception->getCode() . " " . $exception->getMessage()); - } - } - /** * Convert a REST url into an object. * Eg: "http://example.com/gallery3/index.php/rest/gallery/Family/Wedding" -> Item_Model |