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:
Parker Brown
2025-08-22 13:46:06 -07:00
parent f57ea8787c
commit 3ffe05f85c
+4 -1
View File
@@ -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 {