Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.53k stars 1.95k forks source link

[Bug] the post request http header cannot be handled properly when copy as curl command #1970

Open sherwinwangs opened 4 years ago

sherwinwangs commented 4 years ago

Describe the bug when copy a post request as curl command,http header Content-Type will automation add an string after multipart/form-data,finnally looks like 'content-type: multipart/form-data; boundary=---011000010111000001101001', which can't be handled properly,the server return HTTP Code 400

To Reproduce

  1. create an post request with multipart form and a http header: content-type: multipart/form-data
  2. copy the request as an curl command
  3. execute the curl command
  4. the server return http error code 400

Expected behavior the post request copy as curl command can be handled properly

Desktop (please complete the following information):

gschier commented 4 years ago

This looks to be an issue with the httpsnippet library used to generate the Curl command.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.