Hato does not do automatic decompression of the body. Note the casing of GZip as it appears hato is expecting it be lower-cased gzip instead. According to RFC2616 section 3.5 specifies: "All content-coding values are case-insensitive." I just ran into this case with Hato when exploring a new API that returned GZip instead.
If a server responds with:
Hato does not do automatic decompression of the body. Note the casing of
GZip
as it appears hato is expecting it be lower-casedgzip
instead. According to RFC2616 section 3.5 specifies: "All content-coding values are case-insensitive." I just ran into this case with Hato when exploring a new API that returnedGZip
instead.Seems like a simple
str/lower-case
may help here?