-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rename compress parameter #8928
Comments
Tracing the parameter starting at Line 572 in 1d170d3
where it's stored as an attribute. It's then passed to the request object's writer here: aiohttp/aiohttp/client_reqrep.py Line 639 in 1d170d3
Seems that this if-block might be the last point at which the parameter can be interpolated into a Content Encoding header. Because |
Hmm, maybe I misread it... aiohttp/aiohttp/client_reqrep.py Lines 438 to 441 in 1d170d3
Any chance you could create an xfail test based on one of the bug reports? |
So there’s no worry on the edge case of setting the compress attribute after the call to I’ll have a look at that issue and see what I can come up with :) |
Hadn't really thought about that. Not sure why anyone would change it via attribute. But, if that's a problem, we can easily just use |
Might already be a related test in #5478. |
Actually, if the test is corrected to use the correct method, then it seems to reproduce the problem when using the C parser. But, works fine with the Python parser... |
The request() method has a compress parameter which forces compression even when the headers are not set, leading any normal server to not know the request is compressed.
This is a useless option for most people. If we can't remove the option, we should atleast rename it to something that stops people using it by mistake.
We've had many users report bugs due to this confusion.
The text was updated successfully, but these errors were encountered: