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

Defaults should not overwrite defined options #1057

Merged
merged 1 commit into from
Sep 10, 2014
Merged

Conversation

davidwood
Copy link
Contributor

In a recent commit, the applying of defaults changed from a forEach loop that only applied a default if the option is undefined, to using node's util._extend, which simply copies from one object to another. This change introduced a regression where defaults overwrite defined options.

@mikeal
Copy link
Member

mikeal commented Sep 8, 2014

+1 would love @isaacs to sanity check.

@nylen
Copy link
Member

nylen commented Sep 10, 2014

👍 this fixes #1059 as well.

nylen added a commit that referenced this pull request Sep 10, 2014
Defaults should not overwrite defined options
@nylen nylen merged commit b36be6b into request:master Sep 10, 2014
nylen added a commit to nylen/request that referenced this pull request Oct 17, 2014
Defaults should not overwrite defined options
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

5 participants