mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
fix($resource): HTTP method should be case-insensitive
Perform call `angular.uppercase` on all given action methods. Closes #1403
This commit is contained in:
committed by
Pawel Kozlowski
parent
ec801ac137
commit
8991680d8a
@@ -9,7 +9,7 @@ describe("resource", function() {
|
||||
$resource = $injector.get('$resource');
|
||||
CreditCard = $resource('/CreditCard/:id:verb', {id:'@id.key'}, {
|
||||
charge:{
|
||||
method:'POST',
|
||||
method:'post',
|
||||
params:{verb:'!charge'}
|
||||
},
|
||||
patch: {
|
||||
|
||||
Reference in New Issue
Block a user