Skip to content
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

Multiple Content-Type headers #9

Open
hatimn02 opened this issue May 6, 2017 · 0 comments
Open

Multiple Content-Type headers #9

hatimn02 opened this issue May 6, 2017 · 0 comments

Comments

@hatimn02
Copy link

hatimn02 commented May 6, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant