swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.36k stars 150 forks source link

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

Closed jrflat closed 2 weeks ago

jrflat commented 2 weeks ago

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/apple/swift-foundation/pull/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 commented 2 weeks ago

@swift-ci please test