Skip to content

Commit 2475734

Browse files
committed
remove support for HTTP(S)_PROXY - that will come later
1 parent a1620bd commit 2475734

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cmd/src/main.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io"
77
"log"
88
"net"
9-
"net/http"
109
"net/url"
1110
"os"
1211
"path/filepath"
@@ -278,14 +277,6 @@ func readConfig() (*config, error) {
278277
} else {
279278
return nil, errors.Newf("invalid proxy endpoint: %s", proxyStr)
280279
}
281-
} else {
282-
// no SRC_PROXY; check for the standard proxy env variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
283-
if u, err := http.ProxyFromEnvironment(&http.Request{URL: cfg.endpointURL}); err != nil {
284-
// when there's an error, the value for the env variable is not a legit URL
285-
return nil, errors.Newf("invalid HTTP_PROXY or HTTPS_PROXY value: %w", err)
286-
} else {
287-
cfg.proxyURL = u
288-
}
289280
}
290281

291282
cfg.additionalHeaders = parseAdditionalHeaders()

0 commit comments

Comments
 (0)