1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-27 18:21:14 +03:00

Remove double-clone of Buffer.

This commit is contained in:
Jake Wharton
2015-10-19 17:45:24 -04:00
parent 8a7516cc66
commit 75e69c3f49

View File

@@ -195,7 +195,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
if (logBody) {
BufferedSource source = responseBody.source();
source.request(Long.MAX_VALUE); // Buffer the entire body.
Buffer buffer = source.buffer().clone();
Buffer buffer = source.buffer();
Charset charset = UTF8;
MediaType contentType = responseBody.contentType();