Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set a requester without setting default options #1436

Merged
merged 1 commit into from Feb 19, 2015

Conversation

tikotzky
Copy link
Contributor

This PR adds the ability to call request.defaults() and only pass in a requester function.

Right now if you want to use defaults to just pass in a custom requester function you need to pass in an empty options object, like this...
request.defaults({}, function(uri, options, callback){})

This PR adds the ability to do...

request.defaults(function(uri, options, callback){})
// note we left out the first param of `{}`

@nylen
Copy link
Member

nylen commented Feb 19, 2015

👍 thanks!

nylen added a commit that referenced this pull request Feb 19, 2015
…ions

Add ability to set a requester without setting default options
@nylen nylen merged commit 8aede67 into request:master Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants