aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ngResource/resource.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js
index 878a6b6e..4c2a8dc1 100644
--- a/src/ngResource/resource.js
+++ b/src/ngResource/resource.js
@@ -330,6 +330,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 = {};