Support lowercase proxy environment variables
Adds detection for lowercase proxy environment variables (https_proxy, http_proxy) in addition to their uppercase counterparts when configuring the global dispatcher.
This commit is contained in:
+4
-1
@@ -9,7 +9,10 @@ if (process.env.NODE_USE_ENV_PROXY == null) {
|
||||
// Attempt to configure undici global dispatcher (used by octokit under the hood)
|
||||
// if a proxy environment variable is present. Failures are non-fatal.
|
||||
const __proxyUrl =
|
||||
process.env.HTTPS_PROXY || process.env.HTTP_PROXY || process.env.ALL_PROXY;
|
||||
process.env.https_proxy ||
|
||||
process.env.HTTPS_PROXY ||
|
||||
process.env.http_proxy ||
|
||||
process.env.HTTP_PROXY;
|
||||
if (__proxyUrl) {
|
||||
(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user