-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[BrowserKit] Raw body with custom Content-Type header #36839
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Here is some nitpicking.
Hi @ro0NL. Actually I believe we need to preserve content-type only if the raw body data is not empty. It looks like other cases are already covered. Anyway, your patch should work as well :) |
There is also discussion from 2016 about this issue #20042 |
c789964
to
d2dd92b
Compare
Thank you @azhurb. |
Currently, if you try to send POST/PUT request with custom
Content-Type
header and specified body, the real request will containtext/plain
content type.Following code
produces next request
With this fix, the request will be