diff options
| author | Sudhir Jonathan | 2012-11-27 11:54:35 +0530 | 
|---|---|---|
| committer | Pawel Kozlowski | 2012-11-30 23:23:34 +0100 | 
| commit | 0c3500f532c1c2d7fb455206822c8a42561c962c (patch) | |
| tree | f4314b31a548a02a866e955ac4bce80de61c5a78 /src/ngResource | |
| parent | c12f525df4c45de206f5949ea8c54e081417c83c (diff) | |
| download | angular.js-0c3500f532c1c2d7fb455206822c8a42561c962c.tar.bz2 | |
fix($resource): HTTP method should be case-insensitive
Perform call `angular.uppercase` on all given action methods.
Closes #1403
Diffstat (limited to 'src/ngResource')
| -rw-r--r-- | src/ngResource/resource.js | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index 4f468d42..e3578249 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -325,6 +325,7 @@ angular.module('ngResource', ['ng']).        }        forEach(actions, function(action, name) { +        action.method = angular.uppercase(action.method);          var hasBody = action.method == 'POST' || action.method == 'PUT' || action.method == 'PATCH';          Resource[name] = function(a1, a2, a3, a4) {            var params = {};  | 
