String body1 = "product,service,displayName,isHidden,description\n" +
"11AU,Test7,1,false,create q service\n" +
"11LBAND,Test8,1,false,create v service\n" +
"RTX NTRIP,Test9,1,false,create z service";
given().log().all()
.header("Content-Type", "text/csv")
.contentType("text/csv")
.body(body1)
.post("https://<url>")
.then().log().all();
Inspite of adding content-type, error is thrown as Bad request
"Content type is not sent in header 'content-type'"
Below is the Postman request which passes:
How to resolve it?