From ac6a590f526c8e253acf9e99d6e89d66db1c0d1d Mon Sep 17 00:00:00 2001 From: comp500 Date: Sat, 19 Aug 2023 14:05:23 +0100 Subject: [PATCH] Use packwiz User-Agent for url command --- url/install.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/url/install.go b/url/install.go index 8e9c233..e9e38de 100644 --- a/url/install.go +++ b/url/install.go @@ -6,7 +6,6 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" "io" - "net/http" "net/url" "os" "path" @@ -128,7 +127,7 @@ func getHash(url string) (string, error) { if err != nil { return "", err } - resp, err := http.Get(url) + resp, err := core.GetWithUA(url, "application/octet-stream") if err != nil { return "", err }