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

Make it possible to unset the default user-agent header #496

Merged
merged 5 commits into from
Jul 5, 2018

Conversation

szmarczak
Copy link
Collaborator

Fixes #485. To disable user-agent header set it to null or undefined.

@sindresorhus
Copy link
Owner

Great! Can you document the behavior here https://github.com/sindresorhus/got#user-agent and here https://github.com/sindresorhus/got#api

@szmarczak
Copy link
Collaborator Author

Done. Please see if it's good 🦄

@sindresorhus sindresorhus changed the title user-agent header is now optional Make it possible to unset the default user-agent header Jul 5, 2018
@sindresorhus sindresorhus merged commit e473a26 into sindresorhus:master Jul 5, 2018
@sindresorhus
Copy link
Owner

@szmarczak Your change seems to fail on master. Could you take a look?

@szmarczak
Copy link
Collaborator Author

Weird. Suddenly it fails. I'll send a PR.

@szmarczak
Copy link
Collaborator Author

Gotcha! 🦄
require('extend')(true, {}, { x: undefined }) -> {}

Not my fault. I had sent this PR before got has used extend dependency.
058452b broke that.

@szmarczak szmarczak deleted the useragent-patch branch January 17, 2019 18:54
@szmarczak szmarczak mentioned this pull request Nov 12, 2019
22 tasks
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