File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,20 @@ module.exports = {
129129                    tunnelOptions . proxy . proxyAuth  =  `${ proxyUrl . username } ${ proxyUrl . password }  ; 
130130                } 
131131
132+                 const  agent  =  { } ; 
132133                if  ( url . startsWith ( 'https://' ) )  { 
133134                    if  ( proxy . startsWith ( 'https://' ) )  { 
134-                         requestOptions . agent  =  tunnel . httpsOverHttps ( tunnelOptions ) ; 
135+                         agent . https  =  tunnel . httpsOverHttps ( tunnelOptions ) ; 
135136                    }  else  { 
136-                         requestOptions . agent  =  tunnel . httpsOverHttp ( tunnelOptions ) ; 
137+                         agent . https  =  tunnel . httpsOverHttp ( tunnelOptions ) ; 
137138                    } 
138139                }  else  if  ( proxy . startsWith ( 'https://' ) )  { 
139-                     requestOptions . agent  =  tunnel . httpOverHttps ( tunnelOptions ) ; 
140+                     agent . http  =  tunnel . httpOverHttps ( tunnelOptions ) ; 
140141                }  else  { 
141-                     requestOptions . agent  =  tunnel . httpOverHttp ( tunnelOptions ) ; 
142+                     agent . http  =  tunnel . httpOverHttp ( tunnelOptions ) ; 
142143                } 
144+ 
145+                 requestOptions . agent  =  agent ; 
143146            } 
144147        } 
145148
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments