Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Add PATCH to available method
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Mercey committed Mar 23, 2015
1 parent 734c34f commit f56c057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if (method) {
var proposedMethod = method.toUpperCase();

if (['GET', 'POST', 'PUT'].indexOf(proposedMethod) >= 0) {
if (['GET', 'POST', 'PUT', 'PATCH'].indexOf(proposedMethod) >= 0) {
return proposedMethod;
}
}
Expand Down

0 comments on commit f56c057

Please sign in to comment.