mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-26 23:18:17 +03:00
Default headers are bad
This commit is contained in:
parent
8bd20c39aa
commit
9aa6da0642
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue