Commit 68bebc0
Max Black
fix: check proxy env vars case-insensitively to match agent behavior
The agent library (via proxy.js) checks proxy environment variables
case-insensitively by converting all env var names to lowercase before
checking. This updates npm config list to do the same, ensuring that
variables like Http_Proxy, HTTP_PROXY, and http_proxy are all detected.
- Updated proxyEnv list to use lowercase keys matching agent library
- Modified config list to check environment variables case-insensitively
- Now finds any casing of http_proxy, https_proxy, proxy, and no_proxy1 parent 9c29072 commit 68bebc0
2 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
0 commit comments