From 33940f3407edfc1b84876d967c7998eaa4f44b06 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Sat, 24 Jun 2023 19:51:46 +0000 Subject: [PATCH] FIX : Mangalek : add referer (#5945) Fixes https://github.com/manga-download/hakuneko/issues/5943 --- src/web/mjs/connectors/Mangalek.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/mjs/connectors/Mangalek.mjs b/src/web/mjs/connectors/Mangalek.mjs index 635ea7ff242..d3fd9ce937a 100644 --- a/src/web/mjs/connectors/Mangalek.mjs +++ b/src/web/mjs/connectors/Mangalek.mjs @@ -9,6 +9,7 @@ export default class Mangalek extends WordPressMadara { this.tags = [ 'manga', 'webtoon', 'arabic' ]; this.url = 'https://ww.mangalek.org'; this.queryTitleForURI = 'div.profile-manga div.post-title h1'; + this.requestOptions.headers.set('x-referer', this.url); } -} \ No newline at end of file +}