-
Notifications
You must be signed in to change notification settings - Fork 66
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
Incorrect Host header for IPv6 addresses #73
Comments
I tried to debug this issue a little bit. Edit: |
Fix ruby#73: Net::HTTP.get_response(URI.parse("http://[::1]"))
Fix ruby#73: Net::HTTP.get_response(URI.parse("http://[::1]"))
Fix ruby#73: Net::HTTP.get_response(URI.parse("http://[::1]")) When the 'Host' header does not wrap an IPv6 address in brackets, some servers (eg Apache) reject the request with a 400 status code.
Fix ruby#73: Net::HTTP.get_response(URI.parse("http://[::1]")) When the 'Host' header does not wrap an IPv6 address in brackets, some servers (eg Apache) reject the request with a 400 status code.
Fix ruby#73: Net::HTTP.get_response(URI.parse("http://[::1]")) When the 'Host' header does not wrap an IPv6 address in brackets, some servers (eg Apache) reject the request with a 400 status code.
When specifying a URI with an IPv6 address as the host, the Host header of the request contains the IPv6 address but it is not surrounded by brackets
e.g. With a locally running apache webserver, the following snippet results in an HTTP 400 Bad Request error because of the malformed host header (
Host: ::1
instead ofHost: [::1]
)The text was updated successfully, but these errors were encountered: