mirror of
https://github.com/square/okhttp.git
synced 2025-11-27 18:21:14 +03:00
Use charset specified by the request body content type
This commit is contained in:
@@ -188,7 +188,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
|
||||
Charset charset = UTF8;
|
||||
MediaType contentType = requestBody.contentType();
|
||||
if (contentType != null) {
|
||||
contentType.charset(UTF8);
|
||||
charset = contentType.charset(UTF8);
|
||||
}
|
||||
|
||||
logger.log("");
|
||||
|
||||
Reference in New Issue
Block a user