Remove hardcoded "Host" header, now actually working (#764)
Remove hardcoded "Host" header, now actually working
This commit is contained in:
parent
00d661503a
commit
268acb9fb6
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue