Skip to content

Add an ASCII check for edge-case non-ASCII hosts that can't be Punycode encoded#123934

Merged
MihaZupan merged 2 commits intodotnet:mainfrom
MihaZupan:http-nonAsciiIdnHost
Feb 3, 2026
Merged

Add an ASCII check for edge-case non-ASCII hosts that can't be Punycode encoded#123934
MihaZupan merged 2 commits intodotnet:mainfrom
MihaZupan:http-nonAsciiIdnHost

Conversation

@MihaZupan
Copy link
Member

This is an edge-case where some hosts that exceed DNS limits (e.g. contain long labels) can't get Punycode encoded, and their IdnHost may return a non-ASCII value.
This broke some assumptions in our HTTP logic where we'd hit debug asserts.

@MihaZupan MihaZupan added this to the 11.0.0 milestone Feb 3, 2026
@MihaZupan MihaZupan self-assigned this Feb 3, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@MihaZupan MihaZupan requested a review from rzikm February 3, 2026 14:34
@MihaZupan MihaZupan enabled auto-merge (squash) February 3, 2026 15:34
@MihaZupan MihaZupan merged commit 39580bd into dotnet:main Feb 3, 2026
85 of 89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants