Skip to content

Commit

Permalink
fix: Add 'Accept' header for picky sites
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
rabadin committed May 7, 2024
1 parent afaa354 commit 425ed9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func getUrl(u string, fileName string, ctx context.Context) (string, error) {
}
err = requests.
URL(u).
Header("Accept", "*/*").
ToFile(fileName).
Fetch(ctx)
if err != nil {
Expand Down

0 comments on commit 425ed9c

Please sign in to comment.