Specify Accept header for toolcache.downloadTool

This commit is contained in:
Michael B. Gale
2025-09-17 17:06:58 +01:00
committed by Ian Lynagh
parent e8921f7eff
commit eb05da905d
2 changed files with 16 additions and 2 deletions

View File

@@ -192,7 +192,14 @@ async function getProxyBinaryPath(logger: Logger): Promise<string> {
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
if (!proxyBin) {
const temp = await toolcache.downloadTool(proxyInfo.url);
const temp = await toolcache.downloadTool(
proxyInfo.url,
undefined,
undefined,
{
accept: "application/octet-stream",
},
);
const extracted = await toolcache.extractTar(temp);
proxyBin = await toolcache.cacheDir(
extracted,