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

Fix to allow setting a requester on recursive calls to request.defaults #1102

Merged
merged 2 commits into from
Sep 30, 2014

Conversation

tikotzky
Copy link
Contributor

Right now in request.defaults in checks if the method === request to know if it should use the passed in requester

The issue is that on recursive calls to request.defaults the method will not === to request, it will be the function returned from request.defaults.

This PR changes the check to use method === self instead so that you can set a requester on recursive calls torequest.defaults

@nylen
Copy link
Member

nylen commented Sep 29, 2014

👍 thanks - I'll merge this tomorrow if no one objects or beats me to it.

@tikotzky
Copy link
Contributor Author

awesome!

nylen added a commit that referenced this pull request Sep 30, 2014
Fix to allow setting a `requester` on recursive calls to `request.defaults`
@nylen nylen merged commit 95569d5 into request:master Sep 30, 2014
nylen added a commit to nylen/request that referenced this pull request Oct 17, 2014
Fix to allow setting a `requester` on recursive calls to `request.defaults`
@tikotzky tikotzky deleted the fix-defaults-requester branch February 11, 2015 18:46
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