Skip to content

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Sep 4, 2024

Explanation: Percent-encode the host (instead of IDNA-encoding) for URLs with the http+unix or https+unix scheme, supporting the common representation of a "HTTP over Unix socket" URL. This fixes http(s)+unix-related regressions in clients such as Vapor and AsyncHTTPClient (see #863 and swift-server/async-http-client#767)
Scope: Only impacts http+unix and https+unix URLs, adds them to the set of schemesToPercentEncodeHost
Original PR: #883
Risk: Low - narrow scope, added special casing of two schemes to a larger set that has been well tested
Testing: Local, swift-ci, stable in main for 2 weeks, verified to fix swift-server/async-http-client#767
Reviewer: @parkera

@jrflat
Copy link
Contributor Author

jrflat commented Sep 4, 2024

@swift-ci please test

@parkera parkera merged commit 3c2c36a into swiftlang:release/6.0 Sep 5, 2024
3 checks passed
jrflat added a commit to jrflat/swift-foundation that referenced this pull request Sep 13, 2024
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.

2 participants