Skip to content

Commit baa268d

Browse files
committed
Fixed reporting progress on InflatingEntity (wrapped compressed HttpEntity)
1 parent cc9eb89 commit baa268d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ public InputStream getContent() throws IOException {
13781378

13791379
@Override
13801380
public long getContentLength() {
1381-
return -1;
1381+
return wrappedEntity == null ? 0 : wrappedEntity.getContentLength();
13821382
}
13831383

13841384
@Override

0 commit comments

Comments
 (0)