mirror of
https://github.com/square/okhttp.git
synced 2025-11-29 06:23:09 +03:00
Make HttpUrl the blessed URL method of Request.
This commit is contained in:
@@ -151,7 +151,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
|
||||
Connection connection = chain.connection();
|
||||
Protocol protocol = connection != null ? connection.getProtocol() : Protocol.HTTP_1_1;
|
||||
String requestStartMessage =
|
||||
"--> " + request.method() + ' ' + request.httpUrl() + ' ' + protocol(protocol);
|
||||
"--> " + request.method() + ' ' + request.url() + ' ' + protocol(protocol);
|
||||
if (!logHeaders && hasRequestBody) {
|
||||
requestStartMessage += " (" + requestBody.contentLength() + "-byte body)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user