Fix invalid header referer in Dmzj (#1065)

Fix invalid header referer in Dmzj
This commit is contained in:
Toarbit 2019-04-28 20:14:42 +08:00 committed by Carlos
parent 9105f9aef8
commit 2f75e4e56c
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Dmzj' appName = 'Tachiyomi: Dmzj'
pkgNameSuffix = 'zh.dmzj' pkgNameSuffix = 'zh.dmzj'
extClass = '.Dmzj' extClass = '.Dmzj'
extVersionCode = 4 extVersionCode = 5
libVersion = '1.0' libVersion = '1.2'
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -265,7 +265,7 @@ class Dmzj : HttpSource() {
//Headers //Headers
override fun headersBuilder() override fun headersBuilder()
= super.headersBuilder().add("Referer", "https://manhua.dmzj.com")!! = super.headersBuilder().add("Referer", "http://www.dmzj.com/")!!
private open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>, private open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>,
defaultValue: Int = 0) : defaultValue: Int = 0) :