You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Status line is too long" error in cb_on_url is confusing because the URL is too long, not the status line. It looks like it might have been copied from cb_on_status.
These are basically the same though. I think it should just say request line instead of status line here.
Strictly speaking, we should probably be using on_method and on_version to track the length of the entire request line. It's currently possible to exceed the line length using a long method.
Describe the bug
The "Status line is too long" error in cb_on_url is confusing because the URL is too long, not the status line. It looks like it might have been copied from cb_on_status.
https://github.com/aio-libs/aiohttp/blob/master/aiohttp/_http_parser.pyx#L671
To Reproduce
Expected behavior
I expect a more accurate error message like "URL is too long".
Logs/tracebacks
Python Version
aiohttp Version
$ python -m pip show aiohttp
multidict Version
$ python -m pip show multidict
yarl Version
$ python -m pip show yarl
OS
Linux
Related component
Server
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: