Skip to content

Keep brackets around IPv6 addresses in Endpoint#authority - #255

Open
andrewfader wants to merge 1 commit into
socketry:mainfrom
andrewfader:ipv6-authority
Open

andrewfader wants to merge 1 commit into
socketry:mainfrom
andrewfader:ipv6-authority

Conversation

@andrewfader

Copy link
Copy Markdown

Endpoint#authority used URI#hostname, which strips IPv6 brackets. A request to http://[::1]:8080 sent Host: ::1:8080.

This uses URI#host instead. Hostnames and IPv4 are unchanged. Tests added.

@andrewfader
andrewfader marked this pull request as ready for review October 22, 2026 08:35
Signed-off-by: Andrew Fader <fader@yagni.co>

This branch has not been deployed

No deployments
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.

1 participant