Skip to content

Multiple Content-Type headers #9

Description

@hatimn02

If curl snippet contains Content-Type in lower case such as content-type then it creates two content-type headers.

Logic to find content-type header should be incasesensitive.

curl --request POST \
  --url http://www.httpbin.org/post \
  --header 'cache-control: no-cache' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --header 'postman-token: 81163614-974d-2fc5-4251-d9f6544f9d2c' \
  --form hello=world \
  --form hello1=world1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions