Default headers are bad

This commit is contained in:
len 2016-05-27 18:08:05 +02:00
parent 8bd20c39aa
commit 9aa6da0642

View File

@ -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])
}