Karate automatically sets Content-Type header

前端 未结 2 1809
北荒
北荒 2021-01-23 02:35

Good day! In my negative test cases I have to PUT a request without Content-Type header in order to match desired 4xx status code. The problem is karate automatically sets an ap

2条回答
  •  广开言路
    2021-01-23 02:52

    You can pass Content-Type by using the below line:

    And header Content-Type = 'application/json; charset=utf-8'

提交回复
热议问题