File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ export class HttpClient implements ifm.IHttpClient {
125
125
constructor ( userAgent : string | null | undefined , handlers ?: ifm . IRequestHandler [ ] , requestOptions ?: ifm . IRequestOptions ) {
126
126
this . userAgent = userAgent ;
127
127
this . handlers = handlers || [ ] ;
128
- let no_proxy : string = process . env [ EnvironmentVariables . NO_PROXY ] ;
128
+ let no_proxy : string = process . env [ EnvironmentVariables . NO_PROXY ] ??
129
+ process . env [ EnvironmentVariables . NO_PROXY . toLowerCase ( ) ] ;
129
130
if ( no_proxy ) {
130
131
this . _httpProxyBypassHosts = [ ] ;
131
132
no_proxy . split ( ',' ) . forEach ( bypass => {
@@ -551,8 +552,10 @@ export class HttpClient implements ifm.IHttpClient {
551
552
let proxyConfig : ifm . IProxyConfiguration = this . _httpProxy ;
552
553
553
554
// fallback to http_proxy and https_proxy env
554
- let https_proxy : string = process . env [ EnvironmentVariables . HTTPS_PROXY ] ;
555
- let http_proxy : string = process . env [ EnvironmentVariables . HTTP_PROXY ] ;
555
+ let https_proxy : string = process . env [ EnvironmentVariables . HTTPS_PROXY ] ??
556
+ process . env [ EnvironmentVariables . HTTPS_PROXY . toLowerCase ( ) ] ;
557
+ let http_proxy : string = process . env [ EnvironmentVariables . HTTP_PROXY ] ??
558
+ process . env [ EnvironmentVariables . HTTP_PROXY . toLocaleLowerCase ( ) ] ;
556
559
557
560
if ( ! proxyConfig ) {
558
561
if ( https_proxy && usingSsl ) {
You can’t perform that action at this time.
0 commit comments