Skip to content

Add referer header for mangatown request #146

Description

@vaskozl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions