1
0
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:
Jeff Gilfelt
2016-01-09 11:50:41 +00:00
parent c0c55cee67
commit bf6c11f753

View File

@@ -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("");