-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
bugreproducer: missingThis PR or issue lacks code, which reproduce the problem described or clearly understandable STRThis PR or issue lacks code, which reproduce the problem described or clearly understandable STR
Description
Describe the bug
This code snippet has a bug: it converts %2F to /, which causes the signature to fail. aiohttp/client.py 547 line
try:
url = self._build_url(str_or_url)
except ValueError as e:
raise InvalidUrlClientError(str_or_url) from e
To Reproduce
x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D => x-signature=rX7AnN6H6BGSzbXpbUQsY/XCC2w%3D
Expected behavior
x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D => x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D
Logs/tracebacks
nop
Python Version
3.13
aiohttp Version
Name: aiohttp
Version: 3.12.12
multidict Version
$ python -m pip show multidict
propcache Version
$ python -m pip show propcache
yarl Version
$ python -m pip show yarl
OS
macOS
Related component
Client
Additional context
No response
Code of Conduct
- I agree to follow the aio-libs Code of Conduct
Metadata
Metadata
Assignees
Labels
bugreproducer: missingThis PR or issue lacks code, which reproduce the problem described or clearly understandable STRThis PR or issue lacks code, which reproduce the problem described or clearly understandable STR