Skip to content

Commit

Permalink
fixup! fixup! Add support for GOPROXY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Jul 9, 2024
1 parent f407d57 commit ff2247d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/modproxy/modproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ func Proxies() []string {
func Request(path string, cached bool) (*http.Response, error) {
var last *http.Response
for _, proxy := range Proxies() {
proxy = strings.TrimSpace(proxy)
if proxy == "direct" {
continue
}
url, err := neturl.JoinPath(proxy, path)
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
Expand Down

0 comments on commit ff2247d

Please sign in to comment.