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 6b97b45 commit 5ca0245Copy full SHA for 5ca0245
library/src/com/loopj/android/http/AsyncHttpResponseHandler.java
@@ -446,7 +446,7 @@ byte[] getResponseData(HttpEntity entity) throws IOException {
446
} finally {
447
instream.close();
448
}
449
- responseBody = buffer.buffer();
+ responseBody = buffer.toByteArray();
450
} catch (OutOfMemoryError e) {
451
System.gc();
452
throw new IOException("File too large to fit into available memory");
0 commit comments