Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 943c5ec

Browse files
committed
Fix typo
1 parent 781f958 commit 943c5ec

File tree

1 file changed

+3
-3
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http

1 file changed

+3
-3
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/LogInterceptor.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class LogInterceptor : Interceptor {
131131

132132
logHttp(RESPONSE, BODY, requestId, "Length: ${responseBody.contentLength()} byte body")
133133
logHttp(RESPONSE, BODY, requestId, "Type: ${responseBody.contentType()}")
134-
logHttp(RESPONSE, BODY, requestId, "--> Body start for request")
134+
logHttp(RESPONSE, BODY, requestId, "--> Body start for response")
135135

136136
val source = responseBody.source()
137137
source.request(LIMIT_BODY_LOG)
@@ -142,7 +142,7 @@ class LogInterceptor : Interceptor {
142142
RESPONSE,
143143
BODY,
144144
requestId,
145-
"<-- Body end for request -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
145+
"<-- Body end for response -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
146146
)
147147
}
148148

@@ -155,7 +155,7 @@ class LogInterceptor : Interceptor {
155155
RESPONSE,
156156
BODY,
157157
requestId,
158-
"<-- Body end for request -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
158+
"<-- Body end for response -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
159159
)
160160
} ?: logHttp(RESPONSE, BODY, requestId, "Empty body")
161161
}

0 commit comments

Comments
 (0)