-
-
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
Always set 'Content-Type': 'application/octet-stream'? #4532
Comments
There's no body in your request, so there's no way to guess the media type. also, requests doesn't set content-type at all
|
@hh-h Yeah, I tried this with |
What do you mean by "when we should set"? It's client logic, so feel free to set it whenever you want :) |
I mean following the guide like RFC, never mind, I found |
@hh-h Last question, is there any way to print the raw HTTP request? Like |
If you want to use library I suggest to dig into docs, it is really helpful :) |
I mean I checked this before, and I didn’t find the answer. So … |
What do you want to achieve? |
“To see what ultimately is constructed from HTTP request?” |
I'm afraid there's no easy way to view the body of the request (like on SO) without overwriting |
Yeah. And I also find this #2516 . So I think I can close this issue now. |
I'm not sure about this but I think aiohttp should set
Content-Type
withapplication/x-www-form-urlencoded
?The text was updated successfully, but these errors were encountered: