setting content type in rest assured

后端 未结 8 1210
广开言路
广开言路 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:37

    For your First option can you please try adding this header too and sending the request?

    .header("Accept","application/json")

提交回复
热议问题