mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 22:21:52 +01:00
Default headers are bad
This commit is contained in:
parent
8bd20c39aa
commit
9aa6da0642
@ -108,6 +108,7 @@ class MangaModelLoader(context: Context) : StreamModelLoader<Manga> {
|
||||
val source = sourceManager.get(manga.source) as? OnlineSource ?: return LazyHeaders.DEFAULT
|
||||
return cachedHeaders.getOrPut(manga.source) {
|
||||
LazyHeaders.Builder().apply {
|
||||
setHeader("User-Agent", null as? String)
|
||||
for ((key, value) in source.headers.toMultimap()) {
|
||||
addHeader(key, value[0])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user