We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When constructing a path, a reserved character like space is encoded correctly by furl:
>>> furl('http://localhost').add(path=['foo bar']).url 'http://localhost/foo%20bar'
However, a percentage character is not encoded (and the following two characters are capitalized):
>>> furl('http://localhost').add(path=['foo%bar']).url 'http://localhost/foo%BAr'
In this case I'd expect the output to be:
'http://localhost/foo%25bar'
The text was updated successfully, but these errors were encountered:
Only percent-decode percent-encoded path strings once, not twice. Fix…
a0b3e00
…es Issues #55 and #84. Huge thanks to Thomas Hooper and Tom Dryer.
This bug is fixed in the latest furl v0.5.7.
>>> from furl import furl >>> furl('http://localhost').add(path=['foo bar']).url 'http://localhost/foo%20bar' >>> furl('http://localhost').add(path=['foo%bar']).url 'http://localhost/foo%25bar'
Update with
pip install furl --upgrade
Thank you for bringing this issue to my attention Tom. Don't hesitate to let me know if there's anything else I can do for you.
Sorry, something went wrong.
Thanks for the fix!
No branches or pull requests
When constructing a path, a reserved character like space is encoded correctly by furl:
However, a percentage character is not encoded (and the following two characters are capitalized):
In this case I'd expect the output to be:
'http://localhost/foo%25bar'
The text was updated successfully, but these errors were encountered: