Skip to content

Add support for URI that contains an IPv6 address#156

Closed
1robertrb wants to merge 1 commit into
ruby:masterfrom
1robertrb:uri_ipv6
Closed

Add support for URI that contains an IPv6 address#156
1robertrb wants to merge 1 commit into
ruby:masterfrom
1robertrb:uri_ipv6

Conversation

@1robertrb

@1robertrb 1robertrb commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

Fix #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.

@1robertrb 1robertrb changed the title Add support IPv6 + URI Add support for URI that contains an IPv6 address Sep 19, 2023
Fix #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.
@1robertrb

Copy link
Copy Markdown
Contributor Author

It doesn't look like this pull request will be merged. Closing.

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 this pull request may close these issues.

Incorrect Host header for IPv6 addresses

1 participant