From b6de9859223ad4521ea9aef147534607c5a0a4d5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 16 Nov 2008 19:22:27 +0000 Subject: Handle _method in either GET or POST --- core/controllers/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers') 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); -- cgit v1.2.3