Skip to content

Commit

Permalink
check url error
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Jul 9, 2024
1 parent f6e80af commit b572950
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/modproxy/modproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func Request(path string, cached bool) (*http.Response, error) {
var last *http.Response
for _, proxy := range Proxies() {
url, err := neturl.JoinPath(proxy, path)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit b572950

Please sign in to comment.