TestMace / TestMace-issues

Issues-only repository for issue management of TestMace
https://testmace.com
36 stars 6 forks source link

Incorrect headers import from cURL when header name is not specified #17

Closed kotokur closed 5 years ago

kotokur commented 5 years ago

For now request:

curl -d 'client_id=4' -H "application/x-www-form-urlencoded" -X POST https://testmace-stage.herokuapp.com/posts

must be explicitly converted to:

curl -d 'client_id=4' -H "Content-Type: application/x-www-form-urlencoded" -X POST https://testmace-stage.herokuapp.com/posts

Expected behavior:

Request "curl -d 'client_id=4' -H "application/x-www-form-urlencoded" -X POST https://testmace-stage.herokuapp.com/posts" imports correctly

dima11221122 commented 5 years ago

Apparently, such headers are incorrect and should be ignored