Skip to content

add_path_segment: slashes in path segments getting quoted (readability) #28

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

Open
keikoro opened this issue Jul 23, 2016 · 2 comments
Open

Comments

@keikoro
Copy link

keikoro commented Jul 23, 2016

Hi there,

I think I just ran into the "reverse" issue of #22 – readability of URLs with (now quoted) / in path seqments for e.g. logging and other text outputs (or lack thereof).

Is there a quick and easy fix for this – removing the quotes – which I might not be aware of?

@keikoro keikoro changed the title Quots before slashes in path segments (readability) add_path_segment: slashes in path segments getting quoted (readability) Jul 23, 2016
@denizdogan
Copy link

Is this the same issue that I'm encountering?

In [7]: URL('http://localhost/foo/').add_path_segment('/bar').as_string()
Out[7]: 'http://localhost/foo/%2Fbar'

I'd expect it to be 'http://localhost/foo/bar'.

@keikoro
Copy link
Author

keikoro commented May 19, 2019

I'm trying to backtrack which project of mine made me post here in the first place, but no luck so far...

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

No branches or pull requests

2 participants