Open vaskozl opened 3 months ago
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 https://github.com/Girbons/comics-downloader/commit/c9eb756f85024bc783b4589c1da2072dc6078fcd 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.
referer
Always setting Referer in pkg/http/client.go fixes this
pkg/http/client.go
thanks for the report @vaskozl!
I remember that there were cases that always setting this header was causing issues but I'll have a look!
New downloads fail via mangatown due to a missing referer header. Example commands:
Since https://github.com/Girbons/comics-downloader/commit/c9eb756f85024bc783b4589c1da2072dc6078fcd 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