Skip to content

Commit

Permalink
Fix ReManga : add referer to requests (#6227)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored and Sheepux committed Jan 2, 2024
1 parent 905fcdd commit 77cdf9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web/mjs/connectors/ReManga.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default class ReManga extends Connector {
this.tags = [ 'manga', 'webtoon', 'russian' ];
this.url = 'https://remanga.org';
this.api = 'https://api.remanga.org';
this.requestOptions.headers.set('x-referer', this.url);

}

async _getMangaFromURI(uri) {
Expand Down Expand Up @@ -106,4 +108,4 @@ export default class ReManga extends Connector {

return pages.map(page => this.createConnectorURI(page));
}
}
}

0 comments on commit 77cdf9d

Please sign in to comment.