1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-01 16:06:56 +03:00

Avoiding direct java.lang usage (#5065)

* i

* i

* i
This commit is contained in:
Yuri Schimke
2019-05-18 11:44:20 +01:00
committed by Jesse Wilson
parent 7337b1d7ac
commit f468cfc7b2
3 changed files with 10 additions and 6 deletions

View File

@ -241,7 +241,7 @@ class HttpLoggingInterceptor @JvmOverloads constructor(
logger.log("<-- END HTTP (encoded body omitted)")
} else {
val source = responseBody.source()
source.request(java.lang.Long.MAX_VALUE) // Buffer the entire body.
source.request(Long.MAX_VALUE) // Buffer the entire body.
var buffer = source.buffer
var gzippedLength: Long? = null