Skip to content

Re-open: GZIP content not inflated #932

@phleemac

Description

@phleemac

I encounter exactly the same problem as described in #641 using version 1.4.8

This is caused by a bug in com.loopj.android.http.AsyncHttpClient#isInputStreamGZIPCompressed: in the statement int readStatus = inputStream.read(signature); where signature might only be partially filled (see javadoc http://docs.oracle.com/javase/7/docs/api/java/io/PushbackInputStream.html#read(byte[],%20int,%20int)

Should check the returned byte count and re-read to fetch the 2nd byte if necessary

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions