Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Specify Accept header for toolcache.downloadTool
  • Loading branch information
mbg authored and igfoo committed Sep 23, 2025
commit eb05da905dde2311f814bcef836fecf6bb74f81a
9 changes: 8 additions & 1 deletion lib/start-proxy-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/start-proxy-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading