We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f4d1d8 commit dc18480Copy full SHA for dc18480
library/src/main/java/com/loopj/android/http/AsyncHttpClient.java
@@ -1608,7 +1608,8 @@ public InflatingEntity(HttpEntity wrapped) {
1608
public InputStream getContent() throws IOException {
1609
wrappedStream = wrappedEntity.getContent();
1610
pushbackStream = new PushbackInputStream(wrappedStream, 2);
1611
- if (isInputStreamGZIPCompressed(pushbackStream)) {
+ Header enc = wrappedEntity.getContentEncoding();
1612
+ if ((enc != null && "gzip".equalsIgnoreCase(enc.getValue())) || isInputStreamGZIPCompressed(pushbackStream)) {
1613
gzippedStream = new GZIPInputStream(pushbackStream);
1614
return gzippedStream;
1615
} else {
0 commit comments