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
If you create an empty web response you will have a content length of 0 instead of None.
Content length should be None.
Content length is 0
import aiohttp.web r = aiohttp.web.Response() r.content_length >>> 0
aiohttp 2.0.7 on macos
The text was updated successfully, but these errors were encountered:
I'm not sure of me. But it seem sometimes this can create trouble with chunked encoding. That's why previously I opened this PR: #1933
Sorry, something went wrong.
this is intended behavior, because you supply response body. by default it is empty.
Thanks
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that new issue.
No branches or pull requests
Long story short
If you create an empty web response you will have a content length of 0 instead of None.
Expected behaviour
Content length should be None.
Actual behaviour
Content length is 0
Steps to reproduce
Your environment
aiohttp 2.0.7 on macos
The text was updated successfully, but these errors were encountered: