Skip to content

Commit

Permalink
Merge pull request #16 from rabadin/fix-15
Browse files Browse the repository at this point in the history
fix: Add 'Accept' header for picky sites
  • Loading branch information
rabadin authored May 7, 2024
2 parents afaa354 + 425ed9c commit 05fcf93
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 05fcf93

Please sign in to comment.