Fix CloudFlare resolve url

pull/203/head
Koitharu 4 years ago
parent c2561a1de0
commit cf7cdbc41b
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -17,7 +17,7 @@ class CloudFlareInterceptor : Interceptor {
if (response.code == HTTP_FORBIDDEN || response.code == HTTP_UNAVAILABLE) {
if (response.header(HEADER_SERVER)?.startsWith(SERVER_CLOUDFLARE) == true) {
response.closeQuietly()
throw CloudFlareProtectedException(chain.request().url.toString())
throw CloudFlareProtectedException(response.request.url.toString())
}
}
return response

Loading…
Cancel
Save