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
Host header does not comply with RFC2616 #448
Comments
Isn't port optional though? |
RFC states
And I have a server here which rejects my request when not setting the host header correctly. |
Ah, I understand the implication, but what I say is that it is not MUST to specify port :) So you would like default host to be set according to remote domain name and port, used for connection Just for your interest, HOST is set, if it is omitted, here https://github.com/actix/actix-web/blob/master/src/client/request.rs#L629-L640 |
That would be great 👍 |
@Paradyx If you have time, you could do it youself, PRs are welcome 😄 I'll take a look at it later one, after work |
@Paradyx Btw should we omit port in header when we use default HTTPs port too? 😄 |
Sending a request to a host on a port other then 80 should change the
host
header according to RFC2616 14.23 Hosti.e.: Connecting to localhost:8081 should write the header
host: localhost:8081
and nothost: localhost
The text was updated successfully, but these errors were encountered: