-
-
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
Inconsistent default Content-Type #184
Comments
Hmm. Do you talk about |
I talk about |
It's also |
Taken from RFC 2616, chapter 7.2.1:
|
@Renstrom, I'm not sure what you mean. The HTTP spec says "recipient SHOULD", but aiohttp sets header at sender side. Well, if it's not clear the issue is about the body of POST (and other) requests sent from client to server. |
Perhaps I misinterpreted. But on the server side, if a client sends a request with a body (regardless of verb) and the I figured you were talking about what a server should do since you mentioned |
When
body
is string or bytes object the aiohttp sets default content type toapplication/octed-stream
, but whenbody
isStreamReader
or coroutine or other kind of stream theContent-Type
is not touched.I believe automatic
Content-Type
should not be set. But in case it has to, it should at least be consistent.The text was updated successfully, but these errors were encountered: