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
Netty: Don't set Host header port when it's the scheme's default one #899
Comments
A proper solution would be to not pass the port when it's the scheme's default one. |
As a workaround, you can explicitly set the Host header in the request. |
@yatindra Fixed, thanks for reporting! |
Thanks a lot. |
By the way when would you be releasing 1.9.26? |
Implement
Just did. Wait for sync to happen on central. |
Great thanks. |
Hi,
So, this is actually not an issue, but I would like to know a workaround for this.
When the Host header in request contains the port as well
Host: www.example.com:443
which is the default behaviour and which is also as per RFC, servers like IIS fail to parse it properly and return a 404 for a valid URL.
This may not be the case always, only when IIS is not configured properly.
For direct cases where I know the end URL, I usually set the Host header manually and AHC does not overwrite the value I provide.
But in cases where a redirection happens AHC will generate a new request and there I don't have control over the value. I don't have control over the original URL input as well, so updating to the correct URL is also not possible.
Example URL: https://www.chamberofcommerce.com/short-hills-nj/11218079-massage-envy-spa-short-hills-llc
Is there a workaround for this?
The text was updated successfully, but these errors were encountered: