Fix referer in MangaDex. (#7397)
This commit is contained in:
parent
d191a78d97
commit
2fb79d4a2c
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 116
|
||||
extVersionCode = 117
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue