Skip to content

[6.0.1] URLComponents: support http(s)+unix schemes #914

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

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Sep 13, 2024

Original 6.0 cherry-pick: #903
Description from that cherry-pick:

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 13, 2024

@swift-ci please test

@jrflat jrflat merged commit ada683d into swiftlang:release/6.0.1 Sep 17, 2024
3 checks passed
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