mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
When the HTTP server responded with an error (statusCode >= 400), the readResponseStream didn't decode the inStream as gzip even if the request sended had the Content-Encoding header. My fix moves the code that parses Content-Encoded header and decodes gzipped body out the test to get the input stream to the point where we are certain that we have a inStream that we can decode.