Skip to content

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.

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.

2 participants