File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/interceptors/terminal Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,16 @@ export function getTerminalEnvVars(
78
78
const binPath = joinPath ( overridePath , BIN_OVERRIDE_DIR ) ;
79
79
80
80
return {
81
- 'http_proxy' : proxyUrl ,
81
+ // The main env vars, which in theory should be used by most well-behaved clients:
82
82
'HTTP_PROXY' : proxyUrl ,
83
- 'https_proxy' : proxyUrl ,
84
83
'HTTPS_PROXY' : proxyUrl ,
84
+ // The same in lowercase, to fully cover even oddly behaved cases:
85
+ 'http_proxy' : proxyUrl ,
86
+ 'https_proxy' : proxyUrl ,
87
+ // The same for WebSockets, as some clients treat these differently:
88
+ 'WS_PROXY' : proxyUrl ,
89
+ 'WSS_PROXY' : proxyUrl ,
90
+
85
91
// Used by global-agent to configure node.js HTTP(S) defaults
86
92
'GLOBAL_AGENT_HTTP_PROXY' : proxyUrl ,
87
93
// Used by some CGI engines to avoid 'httpoxy' vulnerability
You can’t perform that action at this time.
0 commit comments