Copy `HttpClient` and change the decode function t...
# kotlin-fuel
d
Copy
HttpClient
and change the decode function to
Copy code
private fun decode(stream: InputStream, encoding: String): InputStream {
        return when (encoding) {
            "gzip" -> GZIPInputStream(stream)
            "deflate" -> InflaterInputStream(stream)
            "identity" -> stream
            "chunked" -> stream
            "" -> stream
            else -> throw UnsupportedOperationException("Decoding $encoding is not supported. $SUPPORTED_DECODING are.")
        }
    }