From 9aa6da06423aa9c2d5f7049fee947af16e0a5d63 Mon Sep 17 00:00:00 2001 From: len Date: Fri, 27 May 2016 18:08:05 +0200 Subject: [PATCH] Default headers are bad --- .../main/java/eu/kanade/tachiyomi/data/glide/MangaModelLoader.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaModelLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaModelLoader.kt index 0f3b24d56..d5865180f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaModelLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaModelLoader.kt @@ -108,6 +108,7 @@ class MangaModelLoader(context: Context) : StreamModelLoader { 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]) }