While MakeSimpleRequest sets Accept-Encoding: gzip, it doesn't itself
handle gzipped response bodies.
This updates the two functions which currently reference r.Body (BodyIs
and DecodeJsonPayload) to use a new helper function DecodedBody which
transparently handles gzipped response bodies. A matching convenience
method on the Recorded type is added as well.
While MakeSimpleRequest sets
Accept-Encoding: gzip
, it doesn't itself handle gzipped response bodies.This updates the two functions which currently reference r.Body (BodyIs and DecodeJsonPayload) to use a new helper function DecodedBody which transparently handles gzipped response bodies. A matching convenience method on the Recorded type is added as well.
Updates https://github.com/ant0ine/go-json-rest/issues/214