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.x] URL: Appending to an empty file path results in an absolute path (#988) #1019

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Oct 28, 2024

Explanation: Corrects URL.appending(path:) behavior to prevent an empty relative path from becoming absolute, which would no longer resolve against the base URL.
Scope: Only impacts URL.appending(...) APIs when the relative path is empty.
Original PR: #988
Risk: Low - Small change to fix breaking behavior in this edge case.
Testing: Added unit tests, swift-ci, stable in main
Reviewer: @jmschonfeld

Resolves #921 for release/6.0

@jrflat
Copy link
Contributor Author

jrflat commented Oct 28, 2024

@swift-ci please test

@jrflat jrflat merged commit 201e2d2 into swiftlang:release/6.0 Oct 29, 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