Remove hardcoded "Host" header, now actually working (#764)

Remove hardcoded "Host" header, now actually working
This commit is contained in:
Logan B 2019-02-05 12:09:35 +13:00 committed by Carlos
parent 00d661503a
commit 268acb9fb6
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaHost' appName = 'Tachiyomi: MangaHost'
pkgNameSuffix = 'pt.mangahost' pkgNameSuffix = 'pt.mangahost'
extClass = '.MangaHost' extClass = '.MangaHost'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -23,7 +23,6 @@ class MangaHost : ParsedHttpSource() {
private val catalogHeaders = Headers.Builder().apply { private val catalogHeaders = Headers.Builder().apply {
add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36") add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36")
add("Host", "mangahost1.com")
add("Referer", baseUrl) add("Referer", baseUrl)
}.build() }.build()