mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-10-31 19:58:55 +08:00 
			
		
		
		
	Change to @action/http-client version to the one that was used in the most recent build
This commit is contained in:
		
							
								
								
									
										17
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -7195,10 +7195,6 @@ function checkBypass(reqUrl) { | ||||
|     if (!reqUrl.hostname) { | ||||
|         return false; | ||||
|     } | ||||
|     const reqHost = reqUrl.hostname; | ||||
|     if (isLoopbackAddress(reqHost)) { | ||||
|         return true; | ||||
|     } | ||||
|     const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; | ||||
|     if (!noProxy) { | ||||
|         return false; | ||||
| @@ -7224,24 +7220,13 @@ function checkBypass(reqUrl) { | ||||
|         .split(',') | ||||
|         .map(x => x.trim().toUpperCase()) | ||||
|         .filter(x => x)) { | ||||
|         if (upperNoProxyItem === '*' || | ||||
|             upperReqHosts.some(x => x === upperNoProxyItem || | ||||
|                 x.endsWith(`.${upperNoProxyItem}`) || | ||||
|                 (upperNoProxyItem.startsWith('.') && | ||||
|                     x.endsWith(`${upperNoProxyItem}`)))) { | ||||
|         if (upperReqHosts.some(x => x === upperNoProxyItem)) { | ||||
|             return true; | ||||
|         } | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
| exports.checkBypass = checkBypass; | ||||
| function isLoopbackAddress(host) { | ||||
|     const hostLower = host.toLowerCase(); | ||||
|     return (hostLower === 'localhost' || | ||||
|         hostLower.startsWith('127.') || | ||||
|         hostLower.startsWith('[::1]') || | ||||
|         hostLower.startsWith('[0:0:0:0:0:0:0:1]')); | ||||
| } | ||||
| //# sourceMappingURL=proxy.js.map
 | ||||
| 
 | ||||
| /***/ }), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nikolai Laevskii
					Nikolai Laevskii