mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge branch 'master' into master
This commit is contained in:
@@ -409,8 +409,9 @@ public class Async {
|
||||
|
||||
// In the event we don't have a null stream, and we have gzip as part of the encoding
|
||||
// then we will use gzip to decode the stream
|
||||
// Ignore gzip encoding for 204 'No Content' status to prevent java.io.EOFException
|
||||
String encodingHeader = connection.getHeaderField("Content-Encoding");
|
||||
if (encodingHeader != null && encodingHeader.toLowerCase().contains("gzip")) {
|
||||
if (encodingHeader != null && encodingHeader.toLowerCase().contains("gzip") && this.statusCode != 204) {
|
||||
inStream = new GZIPInputStream(inStream);
|
||||
}
|
||||
|
||||
@@ -584,4 +585,4 @@ public class Async {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user