Skip to content

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Nov 11, 2024

This PR adds a linked-on-or-after check for apps which pass an empty string to URL(string:), which previously returned nil. The new URL(string:) implementations allow the empty string as input since an empty path is valid and can be resolved against a base URL. This is shown in the RFC 3986 examples: https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.1

@jrflat
Copy link
Contributor Author

jrflat commented Nov 11, 2024

@swift-ci please test

@jrflat jrflat merged commit 78fa839 into swiftlang:main Nov 11, 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