diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 19:22:27 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-16 19:22:27 +0000 |
commit | b6de9859223ad4521ea9aef147534607c5a0a4d5 (patch) | |
tree | 4c6db21bbd6b98b56abec2b24d21a171e6968468 | |
parent | 5d14531af936a9ab2887fac9d1f056a1d712b051 (diff) |
Handle _method in either GET or POST
-rw-r--r-- | core/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php index aee4f527..82262f3b 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -77,7 +77,7 @@ abstract class REST_Controller extends Controller { return; } - switch ($this->input->post("_method")) { + switch ($this->input->post("_method", $this->input->get("_method"))) { case "put": return $this->_put($resource); |