Skip to content

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented May 5, 2025

Maintain previous behavior of appending an empty string to a URL with an empty path and host, so that URL(string: "scheme://").appendingPathComponent("") returns scheme:// (no change), while URL(string: "scheme://example.com").appendingPathComponent("") returns scheme://example.com/ (appends a slash).

@jrflat
Copy link
Contributor Author

jrflat commented May 5, 2025

@swift-ci please test

@jrflat jrflat requested review from parkera and jmschonfeld May 5, 2025 17:14
@jrflat jrflat merged commit eb28f8f into swiftlang:main May 5, 2025
15 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