File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,10 @@ 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
+ if ( ! no_proxy ) {
130
+ no_proxy = process . env [ EnvironmentVariables . NO_PROXY . toLowerCase ( ) ] ;
131
+ }
129
132
if ( no_proxy ) {
130
133
this . _httpProxyBypassHosts = [ ] ;
131
134
no_proxy . split ( ',' ) . forEach ( bypass => {
@@ -552,7 +555,13 @@ export class HttpClient implements ifm.IHttpClient {
552
555
553
556
// fallback to http_proxy and https_proxy env
554
557
let https_proxy : string = process . env [ EnvironmentVariables . HTTPS_PROXY ] ;
558
+ if ( ! https_proxy ) {
559
+ https_proxy = process . env [ EnvironmentVariables . HTTPS_PROXY . toLowerCase ( ) ] ;
560
+ }
555
561
let http_proxy : string = process . env [ EnvironmentVariables . HTTP_PROXY ] ;
562
+ if ( ! http_proxy ) {
563
+ http_proxy = process . env [ EnvironmentVariables . HTTP_PROXY . toLowerCase ( ) ] ;
564
+ }
556
565
557
566
if ( ! proxyConfig ) {
558
567
if ( https_proxy && usingSsl ) {
You can’t perform that action at this time.
0 commit comments