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

User-agent ignored in WebRequest.defaults #11

Open
snobu opened this issue Nov 23, 2016 · 0 comments
Open

User-agent ignored in WebRequest.defaults #11

snobu opened this issue Nov 23, 2016 · 0 comments

Comments

@snobu
Copy link

snobu commented Nov 23, 2016

WebRequest.defaults({ headers: {'User-Agent': 'curl/7.28.1'} });
var data = await WebRequest.get('http://localhost');

The request made over the wire:

GET / HTTP/1.1
host: localhost
Connection: close

What am i doing wrong? User-Agent doesn't make it in..

Using web-request 1.0.7 from npm.

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

No branches or pull requests

1 participant