mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix typo
This commit is contained in:
parent
781f958c93
commit
943c5ecb97
@ -131,7 +131,7 @@ class LogInterceptor : Interceptor {
|
|||||||
|
|
||||||
logHttp(RESPONSE, BODY, requestId, "Length: ${responseBody.contentLength()} byte body")
|
logHttp(RESPONSE, BODY, requestId, "Length: ${responseBody.contentLength()} byte body")
|
||||||
logHttp(RESPONSE, BODY, requestId, "Type: ${responseBody.contentType()}")
|
logHttp(RESPONSE, BODY, requestId, "Type: ${responseBody.contentType()}")
|
||||||
logHttp(RESPONSE, BODY, requestId, "--> Body start for request")
|
logHttp(RESPONSE, BODY, requestId, "--> Body start for response")
|
||||||
|
|
||||||
val source = responseBody.source()
|
val source = responseBody.source()
|
||||||
source.request(LIMIT_BODY_LOG)
|
source.request(LIMIT_BODY_LOG)
|
||||||
@ -142,7 +142,7 @@ class LogInterceptor : Interceptor {
|
|||||||
RESPONSE,
|
RESPONSE,
|
||||||
BODY,
|
BODY,
|
||||||
requestId,
|
requestId,
|
||||||
"<-- Body end for request -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
|
"<-- Body end for response -- Binary -- Omitted: ${responseBody.contentLength()} bytes"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ class LogInterceptor : Interceptor {
|
|||||||
RESPONSE,
|
RESPONSE,
|
||||||
BODY,
|
BODY,
|
||||||
requestId,
|
requestId,
|
||||||
"<-- Body end for request -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
|
"<-- Body end for response -- Omitted: ${max(0, responseBody.contentLength() - LIMIT_BODY_LOG)} bytes"
|
||||||
)
|
)
|
||||||
} ?: logHttp(RESPONSE, BODY, requestId, "Empty body")
|
} ?: logHttp(RESPONSE, BODY, requestId, "Empty body")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user