Hi,
On trying to setup headers in RestAssured:
Accept: text/plain
the server throws back a 406 error.
I have already set this up in the .headers(Map) that goes in as part of the RequestSpecification object. (similar to POSTMAN)
I believe that is all that needs to be done?
Do we need to take this value and set it up in the RequestSpecification.accept(ContentType.PLAINTEXT) or something?
This works correctly with curl and PostMan but does not work with RestAssured.
I am expecting the server to throw a 404 error but it keeps throwing a 406 (which causes me to believe something is incorrect with the accept header part)
Any suggestions?
Regards
Shreejit