mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
fixed referer-check
This commit is contained in:
parent
75749ea685
commit
62f0d4fa2e
|
@ -106,7 +106,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi
|
||||||
}
|
}
|
||||||
|
|
||||||
handled.set(true)
|
handled.set(true)
|
||||||
if (request.header("Referer")?.startsWith("https://mangadex.org") == true) {
|
if (request.header("Referer")?.startsWith("https://mangadex.org") == false) {
|
||||||
snapshot?.close()
|
snapshot?.close()
|
||||||
Response(Status.FORBIDDEN)
|
Response(Status.FORBIDDEN)
|
||||||
} else if (snapshot != null && imageDatum != null) {
|
} else if (snapshot != null && imageDatum != null) {
|
||||||
|
|
Loading…
Reference in a new issue