diff options
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/rest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/helpers/rest.php b/core/helpers/rest.php index bb2e8f1a..a0d6e732 100644 --- a/core/helpers/rest.php +++ b/core/helpers/rest.php @@ -57,11 +57,12 @@ class rest_Core { * @return string HTTP request method */ public static function request_method() { + Kohana::log("debug", "request::method: " . request::method()); if (request::method() == "get") { return "get"; } else { $input = Input::instance(); - switch (strtolower($input->post("_method", $input->get("_method")))) { + switch (strtolower($input->post("_method", $input->get("_method", request::method())))) { case "put": return "put"; case "delete": return "delete"; default: return "post"; |