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

node http-client: smarter request headers #1

Open
smith opened this issue Oct 20, 2010 · 0 comments
Open

node http-client: smarter request headers #1

smith opened this issue Oct 20, 2010 · 0 comments

Comments

@smith
Copy link

smith commented Oct 20, 2010

In the node http-client engine, if you send a request with a headers object specified, the Host header does not get set on the request, which upsets some servers. Could this property always be added to the headers object based on the parsed url if it is missing?

Also, a User-Agent is not set by default, and I'm not sure if the node http client sets one for you or not.

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