Skip to content

Commit

Permalink
Use packwiz User-Agent for url command
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Aug 19, 2023
1 parent 4c23e26 commit ac6a590
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions url/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"io"
"net/http"
"net/url"
"os"
"path"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit ac6a590

Please sign in to comment.