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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user