You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it`s just added "Content-Type": "application/x-www-form-urlencoded" to original headers where "content-type": "multipart/form-data; boundary=----WebKitFormBoundarybJcBAJddlZGVXFha"
The text was updated successfully, but these errors were encountered:
Thanks for your report. In the future can you please copy and paste the code, instead of posting only screenshots? It's hard to reproduce the issue from a screenshot.
There are a few issues here:
Passing --data (or similar) sets the Content-Type header even if content-type is already provided.
According to this StackOverflow answer, you can solve this by adding an = between the argument and its value, like --data-raw=$'-----...'.
I'll update the bug to track fixing item 1. But the error logged for item 2 could be better.
rgov
changed the title
Multipart form data Curl to JSON request converts with wrong content-type
HTTP header names are incorrectly case-sensitive
Sep 7, 2023
it`s just added "Content-Type": "application/x-www-form-urlencoded" to original headers where "content-type": "multipart/form-data; boundary=----WebKitFormBoundarybJcBAJddlZGVXFha"
The text was updated successfully, but these errors were encountered: