Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add referer header for mangatown request #146

Open
vaskozl opened this issue Mar 6, 2024 · 1 comment
Open

Add referer header for mangatown request #146

vaskozl opened this issue Mar 6, 2024 · 1 comment

Comments

@vaskozl
Copy link

vaskozl commented Mar 6, 2024

New downloads fail via mangatown due to a missing referer header. Example commands:

comics-downloader -url="https://www.mangatown.com/manga/spy_x_family/" -last 
comics-downloader -url="https://www.mangatown.com/manga/vagabond/" -last 

Since c9eb756
the referer header is only set for mangakakalot and manganato, but mangatown has a cloudflare rule to block requests on new files without a refer header.

Always setting Referer in pkg/http/client.go fixes this

@Girbons
Copy link
Owner

Girbons commented Mar 10, 2024

thanks for the report @vaskozl!

Always setting Referer in pkg/http/client.go fixes this

I remember that there were cases that always setting this header was causing issues but I'll have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants