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)
|
||||
if (request.header("Referer")?.startsWith("https://mangadex.org") == true) {
|
||||
if (request.header("Referer")?.startsWith("https://mangadex.org") == false) {
|
||||
snapshot?.close()
|
||||
Response(Status.FORBIDDEN)
|
||||
} else if (snapshot != null && imageDatum != null) {
|
||||
|
|
Loading…
Reference in a new issue