We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39be826 commit f42f16aCopy full SHA for f42f16a
1 file changed
cmd/src/main.go
@@ -7,7 +7,6 @@ import (
7
"io"
8
"log"
9
"net"
10
- "net/http"
11
"net/url"
12
"os"
13
"path/filepath"
@@ -289,14 +288,6 @@ func readConfig() (*config, error) {
289
288
} else {
290
return nil, errors.Newf("invalid proxy endpoint: %s", proxyStr)
291
}
292
- } else {
293
- // no SRC_PROXY; check for the standard proxy env variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
294
- if u, err := http.ProxyFromEnvironment(&http.Request{URL: cfg.endpointURL}); err != nil {
295
- // when there's an error, the value for the env variable is not a legit URL
296
- return nil, errors.Newf("invalid HTTP_PROXY or HTTPS_PROXY value: %w", err)
297
298
- cfg.proxyURL = u
299
- }
300
301
302
cfg.additionalHeaders = parseAdditionalHeaders()
0 commit comments