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
yarl 1.8.2 allowed to construct URLs with trailing slashes like that:
>>> str(yarl.URL ("http://localhost") / "path" / "") 'http://localhost/path/'
yarl 1.9.4 drops the slash from that path. Possibly related to #862 :
>>> str(yarl.URL ("http://localhost") / "path" / "") 'http://localhost/path'
Try 1.8.2 vs 1.9.4 with the code above.
Preserve the slash
-
Python 3.11.6
$ python -m pip show multidict Name: multidict Version: 6.0.4 Summary: multidict implementation Home-page: https://github.com/aio-libs/multidict Author: Andrew Svetlov Author-email: andrew.svetlov@gmail.com License: Apache 2 Requires: Required-by: aiohttp, yarl
$ python -m pip show yarl Name: yarl Version: 1.9.4 Summary: Yet another URL library Home-page: https://github.com/aio-libs/yarl Author: Andrew Svetlov Author-email: andrew.svetlov@gmail.com License: Apache-2.0 Location: /home/alex/.local/share/virtualenvs/widget.backend-6HfWXuQ_/lib/python3.11/site-packages Requires: idna, multidict Required-by: aiohttp
Ubuntu 23.10
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
yarl 1.8.2 allowed to construct URLs with trailing slashes like that:
yarl 1.9.4 drops the slash from that path. Possibly related to #862 :
To Reproduce
Try 1.8.2 vs 1.9.4 with the code above.
Expected behavior
Preserve the slash
Logs/tracebacks
Python Version
Python 3.11.6
multidict Version
yarl Version
OS
Ubuntu 23.10
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: