Skip to content

Commit f42f16a

Browse files
committed
remove support for HTTP(S)_PROXY - that will come later
1 parent 39be826 commit f42f16a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

cmd/src/main.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"io"
88
"log"
99
"net"
10-
"net/http"
1110
"net/url"
1211
"os"
1312
"path/filepath"
@@ -289,14 +288,6 @@ func readConfig() (*config, error) {
289288
} else {
290289
return nil, errors.Newf("invalid proxy endpoint: %s", proxyStr)
291290
}
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-
} else {
298-
cfg.proxyURL = u
299-
}
300291
}
301292

302293
cfg.additionalHeaders = parseAdditionalHeaders()

0 commit comments

Comments
 (0)