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

[6.0] URL.host should not return percent-encoded host #902

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Sep 4, 2024

Explanation: Fixes URL.host to match the behavior before the Swift URL implementation:

  • If the host was percent-encoded, return the percent-decoded host
  • If the host was IDNA-encoded (or not encoded at all), return that host string

Scope: Only impacts deprecated (but still used) URL.host for URLs with an encoded host, restoring previous behavior
Original PR: #875
Risk: Low - minimal scope, one line change to restore behavior
Testing: Local, swift-ci, stable in main for 2 weeks
Reviewer: @parkera @jmschonfeld

@jrflat
Copy link
Contributor Author

jrflat commented Sep 4, 2024

@swift-ci please test

@jrflat jrflat requested a review from parkera September 5, 2024 15:15
@parkera parkera merged commit d7ce7ef 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 23, 2024
jrflat added a commit to jrflat/swift-foundation that referenced this pull request Sep 23, 2024
jrflat added a commit to jrflat/swift-foundation that referenced this pull request Sep 23, 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