From 8991680d8ab632dda60cd70c780868c803c74509 Mon Sep 17 00:00:00 2001 From: Sudhir Jonathan Date: Tue, 27 Nov 2012 11:54:35 +0530 Subject: fix($resource): HTTP method should be case-insensitive Perform call `angular.uppercase` on all given action methods. Closes #1403 --- src/ngResource/resource.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ngResource') 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 = {}; -- cgit v1.2.3