Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When using Backbone.js and Backbone.emulateHTTP = true, the _method v…

…ariable is all caps so must be lower-cased to work here.
  • Loading branch information...
commit 59f1d077bf8559cab26bcab8c0513806ff9595c1 1 parent 6f9d27b
Chris Nanney cnanney authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  application/libraries/REST_Controller.php
2  application/libraries/REST_Controller.php
@@ -406,7 +406,7 @@ protected function _detect_method()
if ($this->config->item('enable_emulate_request') && $this->input->post('_method'))
- $method = $this->input->post('_method');
+ $method = strtolower($this->input->post('_method'));
if (in_array($method, array('get', 'delete', 'post', 'put')))
Please sign in to comment.
Something went wrong with that request. Please try again.