mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Merge branch 'referer-check' into 'master'
fixed referer-check Closes #64 See merge request mangadex-pub/mangadex_at_home!49
This commit is contained in:
commit
ac324a7dd2
|
@ -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