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

jersey-netty-connector: non standard port not added to Host: header when sending requests #5799

Closed
sxsubram opened this issue Nov 13, 2024 · 0 comments · Fixed by #5800
Closed

Comments

@sxsubram
Copy link


The “Host” header field in a request provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names.

When I send a request to http://127.0.0.1:8080 I see
GET / HTTP/1.1
Accept-Encoding: gzip
Accept-Encoding: x-gzip
User-Agent: Jersey/2.45 (Netty 4.1.93.Final)
host: 127.0.0.1

If the port is non-standard then it should be present in the Host: header that is sent as part of the request.

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 a pull request may close this issue.

1 participant