优化
This commit is contained in:
@@ -37,8 +37,8 @@ class CronetInterceptor(private val cookieJar: CookieJar) : Interceptor {
|
||||
|
||||
// https://github.com/gedoor/legado/issues/5025#issuecomment-2851156500
|
||||
if (!original.isHttps &&
|
||||
original.header("User-Agent")
|
||||
?.startsWith("Mozilla", true) == true) {
|
||||
original.header("User-Agent")?.startsWith("Mozilla", true) == true
|
||||
) {
|
||||
val referer = original.header("Referer")
|
||||
if (referer != null && referer.startsWith("https:", true)) {
|
||||
builder.header("Referer", "http" + referer.substring(5))
|
||||
|
||||
Reference in New Issue
Block a user