mirror of
https://github.com/square/okhttp.git
synced 2025-08-07 12:42:57 +03:00
Drop the get prefix on Connection accessors.
This commit is contained in:
@@ -149,7 +149,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
|
||||
boolean hasRequestBody = requestBody != null;
|
||||
|
||||
Connection connection = chain.connection();
|
||||
Protocol protocol = connection != null ? connection.getProtocol() : Protocol.HTTP_1_1;
|
||||
Protocol protocol = connection != null ? connection.protocol() : Protocol.HTTP_1_1;
|
||||
String requestStartMessage =
|
||||
"--> " + request.method() + ' ' + request.url() + ' ' + protocol(protocol);
|
||||
if (!logHeaders && hasRequestBody) {
|
||||
|
Reference in New Issue
Block a user