Closed GoogleCodeExporter closed 9 years ago
I tried this approach but now I'm getting a nullpointerexception in the
findContentType method of the RestAssuredResponseImpl.
Looking at the log I see this (among things)
Content-Type=application/xml
Content-Length=2391
What I got from the server was
Content-Type: application/xml
Content-Length: 2391
So it looks like the response headers are also broken.
Original comment by the...@gmail.com
on 7 Sep 2012 at 11:05
It's true that the logger, by default, changes the response because
pretty-printing is enabled. If you log using:
expect().log().body(false) instead then pretty printing will not be used and
the response should be left intact on logging. You can also configure this for
each request by using "detailed logging configuration" (see
https://code.google.com/p/rest-assured/wiki/Usage#Detailed_configuration and
http://rest-assured.googlecode.com/svn/tags/1.6.2/apidocs/com/jayway/restassured
/config/LogConfig.html).
Original comment by johan.ha...@gmail.com
on 10 Sep 2012 at 6:33
Original comment by johan.ha...@gmail.com
on 7 Mar 2014 at 11:18
Original issue reported on code.google.com by
the...@gmail.com
on 7 Sep 2012 at 10:52