Skip to content

Commit 5ca0245

Browse files
committed
1 parent 6b97b45 commit 5ca0245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/com/loopj/android/http/AsyncHttpResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ byte[] getResponseData(HttpEntity entity) throws IOException {
446446
} finally {
447447
instream.close();
448448
}
449-
responseBody = buffer.buffer();
449+
responseBody = buffer.toByteArray();
450450
} catch (OutOfMemoryError e) {
451451
System.gc();
452452
throw new IOException("File too large to fit into available memory");

0 commit comments

Comments
 (0)