From 425ed9cb43f9273f4667afee82dcbbd057abe59f Mon Sep 17 00:00:00 2001 From: rabadin Date: Tue, 7 May 2024 10:49:45 +0200 Subject: [PATCH] fix: Add 'Accept' header for picky sites Fixes #15. --- internal/resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/resource.go b/internal/resource.go index 23e46be..e627f42 100644 --- a/internal/resource.go +++ b/internal/resource.go @@ -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 {