setting content type in rest assured

后端 未结 8 1200
广开言路
广开言路 2021-01-07 21:53

I\'m trying to invoke a rest call using rest assured. My API accepts, \"application/json\" as content type and I need to set in the call. I set the content type

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-07 22:27

    This might possibly be the case with your test. Try this.

    https://github.com/rest-assured/rest-assured/wiki/Usage#avoid-adding-the-charset-to-content-type-header-automatically

提交回复
热议问题