-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
aiohttp.ClientSession incorrectly decoding special characters (parentheses) before making request #7341
Comments
I'm going to update the aiohttp docs with a note, because this gets asked semi-regularly. |
Thanks @Dreamsorcerer! Sorry, I could've been more diligent in reading through the other issues For anyone else that comes across this, I solved my issue using the link above:
|
Describe the bug
The url that I pass into the
.get()
function is not being handled correctly when there are parentheses in the path. This is causing issues when trying to download documents that use the standard naming convention for copies:my_document (1).pdf
The expected url for that document download would look something like:
https://python.org/my_document%20%281%29.pdf
with the following encodings:
%20
(
->%28
)
->%29
Instead it is being decoded at some point and ends up looking like this:
https://www.python.org/document%20(1).pdf
To Reproduce
Expected behavior
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
macOS
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: