MangaHub: add required headers (#12934)

This commit is contained in:
Vetle Ledaal 2022-08-10 23:40:07 +00:00 committed by GitHub
parent 415bcb5316
commit 0c2d35cc41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,8 @@ abstract class MangaHub(
}
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values
.add("Accept", "text/html, application/xhtml+xml, image/jxr, */*")
.add("Origin", baseUrl)
.add("Referer", "$baseUrl/")

View File

@ -9,7 +9,7 @@ class MangaHubGenerator : ThemeSourceGenerator {
override val themeClass = "MangaHub"
override val baseVersionCode: Int = 4
override val baseVersionCode: Int = 5
override val sources = listOf(
SingleLang("1Manga.co", "https://1manga.co", "en", isNsfw = true, className = "OneMangaCo"),