Fix referer in MangaDex. (#7397)

This commit is contained in:
Alessandro Jean 2021-06-02 20:48:15 -03:00 committed by GitHub
parent d191a78d97
commit 2fb79d4a2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 116
extVersionCode = 117
libVersion = '1.2'
containsNsfw = true
}

View File

@ -47,7 +47,7 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
private val helper = MangaDexHelper()
override fun headersBuilder() = Headers.Builder()
.add("Referer", "$baseUrl/")
.add("Referer", "https://mangadex.org/")
.add("User-Agent", "Tachiyomi " + System.getProperty("http.agent"))
override val client = network.client.newBuilder()