swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.4k stars 160 forks source link

[6.0.1] URL.host should not return percent-encoded host #938

Closed jrflat closed 1 month ago

jrflat commented 1 month ago

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

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

Scope: Only impacts deprecated (but still used) URL.host for URLs with an encoded host, restoring previous behavior Original PR: https://github.com/swiftlang/swift-foundation/pull/875 Risk: Low - minimal scope, one line change to restore behavior Testing: Local, swift-ci, stable in main, release/6.0 Reviewer: @parkera @jmschonfeld

jrflat commented 1 month ago

@swift-ci please test