-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
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