fix:删除glide默认ua

pull/1857/head
Xwite 3 years ago
parent aa47a8cc36
commit a573d97ee8
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -541,6 +541,8 @@ class AnalyzeUrl(
fun getGlideUrl(): GlideUrl {
setCookie(source?.getKey())
val headers = LazyHeaders.Builder()
//删除glide默认ua
headers.setHeader(UA_NAME, null as String?)
headerMap.forEach { (key, value) ->
headers.addHeader(key, value)
}

Loading…
Cancel
Save