mirror of
https://github.com/square/okhttp.git
synced 2025-07-29 17:41:17 +03:00
Use vals in OkHttpClient
This commit is contained in:
@ -196,7 +196,7 @@ class DnsOverHttps internal constructor(builder: Builder) : Dns {
|
||||
}
|
||||
|
||||
private fun getCacheOnlyResponse(request: Request): Response? {
|
||||
if (!post && client.cache() != null) {
|
||||
if (!post && client.cache != null) {
|
||||
try {
|
||||
val cacheRequest = request.newBuilder().cacheControl(CacheControl.FORCE_CACHE).build()
|
||||
|
||||
|
Reference in New Issue
Block a user