Skip to content

Commit

Permalink
revert methods list to more popular syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
naugtur committed May 2, 2017
1 parent ed98112 commit 62495d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module.exports = createXHR
createXHR.XMLHttpRequest = window.XMLHttpRequest || noop
createXHR.qsSerialize = null // Define this as a function to support the `qs` option

"get,put,post,patch,head,delete".split(",").map(function(method) {
;
["get","put","post","patch","head","delete"].map(function(method) {
createXHR[method === "delete" ? "del" : method] = function(uri, options, callback) {
options = initParams(uri, options, callback)
options.method = method.toUpperCase()
Expand Down

0 comments on commit 62495d6

Please sign in to comment.