Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
Patch for issue with request#2541: really add 'options' as verb
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasm74 committed Nov 29, 2018
1 parent 167065e commit 998b9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -113,7 +113,7 @@ request.defaults = function (options, requester) {

var defaults = wrapRequestMethod(self, options, requester)

var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete']
var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete', 'options']
verbs.forEach(function (verb) {
defaults[verb] = wrapRequestMethod(self[verb], options, requester, verb)
})
Expand Down

0 comments on commit 998b9b2

Please sign in to comment.