update getGlidrUrl

pull/354/head
AndyBernie 4 years ago
parent 3db3bc1084
commit 534f573f0c
  1. 12
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -434,15 +434,11 @@ class AnalyzeUrl(
}
fun getGlideUrl(): Any? {
var glideUrl: Any = urlHasQuery
if (headerMap.isNotEmpty()) {
val headers = LazyHeaders.Builder()
headerMap.forEach { (key, value) ->
headers.addHeader(key, value)
}
glideUrl = GlideUrl(urlHasQuery, headers.build())
val headers = LazyHeaders.Builder()
headerMap.forEach { (key, value) ->
headers.addHeader(key, value)
}
return glideUrl
return GlideUrl(urlHasQuery, headers.build())
}
data class UrlOption(

Loading…
Cancel
Save