Skip to content

gh-99901: prepend '/' to url only if netloc is not empty #99910

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

Closed
wants to merge 1 commit into from

Conversation

WolframAlph
Copy link
Contributor

@WolframAlph WolframAlph commented Nov 30, 2022

@WolframAlph WolframAlph changed the title urllib.parse.urlunsplit: prepend '/' to path only if it is missing an… gh-99901: prepend '/' to path only if it is missing and netloc != '' Nov 30, 2022
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests.

@bedevere-app
Copy link

bedevere-app bot commented Dec 27, 2023

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@WolframAlph
Copy link
Contributor Author

Hi @serhiy-storchaka, thanks for reviewing. Added tests.

@WolframAlph WolframAlph changed the title gh-99901: prepend '/' to path only if it is missing and netloc != '' gh-99901: prepend '/' to url only if netloc is not empty Dec 28, 2023
@serhiy-storchaka
Copy link
Member

Closed, because reinterpreting the first component of relative path as a netloc is definitely wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants