1
0
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:
jwilson
2015-12-21 21:10:48 -05:00
parent 2b4ce3e6b7
commit 02d6b4e78c
11 changed files with 34 additions and 27 deletions

View File

@@ -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) {