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

wrap IPv6 SERVER_NAME in [] #2997

Merged
merged 1 commit into from
Nov 7, 2024
Merged

wrap IPv6 SERVER_NAME in [] #2997

merged 1 commit into from
Nov 7, 2024

Conversation

davidism
Copy link
Member

@davidism davidism commented Nov 7, 2024

When using IPv6, SERVER_NAME is sent as ::1. When the Host header isn't present, SERVER_NAME is used to construct request.host. Wrap it with [] so that it matches the format that the Host header would have.

fixes #2993

@davidism davidism added this to the 3.1.3 milestone Nov 7, 2024
@davidism davidism merged commit ba15683 into stable Nov 7, 2024
11 checks passed
@davidism davidism deleted the multi-bytes branch November 7, 2024 16:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant