From 2f75e4e56c205f9b2665e7e3883f7b91b5c3444a Mon Sep 17 00:00:00 2001 From: Toarbit <8676668+Toarbit@users.noreply.github.com> Date: Sun, 28 Apr 2019 20:14:42 +0800 Subject: [PATCH] Fix invalid header referer in Dmzj (#1065) Fix invalid header referer in Dmzj --- src/zh/dmzj/build.gradle | 4 ++-- src/zh/dmzj/src/eu/kanade/tachiyomi/extension/zh/dmzj/Dmzj.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zh/dmzj/build.gradle b/src/zh/dmzj/build.gradle index eca4853a1..4e6af0a17 100644 --- a/src/zh/dmzj/build.gradle +++ b/src/zh/dmzj/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: Dmzj' pkgNameSuffix = 'zh.dmzj' extClass = '.Dmzj' - extVersionCode = 4 - libVersion = '1.0' + extVersionCode = 5 + libVersion = '1.2' } apply from: "$rootDir/common.gradle" diff --git a/src/zh/dmzj/src/eu/kanade/tachiyomi/extension/zh/dmzj/Dmzj.kt b/src/zh/dmzj/src/eu/kanade/tachiyomi/extension/zh/dmzj/Dmzj.kt index 15c45864e..d76edf480 100644 --- a/src/zh/dmzj/src/eu/kanade/tachiyomi/extension/zh/dmzj/Dmzj.kt +++ b/src/zh/dmzj/src/eu/kanade/tachiyomi/extension/zh/dmzj/Dmzj.kt @@ -265,7 +265,7 @@ class Dmzj : HttpSource() { //Headers 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>, defaultValue: Int = 0) :