Skip to content

Commit ab9179b

Browse files
committed
Ensure CGI scripts (if run directly somehow) pick up the proxy
1 parent bf60e37 commit ab9179b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/fresh-terminal.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export class TerminalInterceptor implements Interceptor {
101101
'HTTP_PROXY': `http://localhost:${proxyPort}`,
102102
'https_proxy': `http://localhost:${proxyPort}`,
103103
'HTTPS_PROXY': `http://localhost:${proxyPort}`,
104+
// Used by some CGI engines to avoid 'httpoxy' vulnerability
105+
'CGI_HTTP_PROXY': `http://localhost:${proxyPort}`,
104106

105107
// Trust cert when using OpenSSL with default settings
106108
'SSL_CERT_FILE': this.config.https.certPath,

0 commit comments

Comments
 (0)