Skip to content

Commit eb05da9

Browse files
mbgigfoo
authored andcommitted
Specify Accept header for toolcache.downloadTool
1 parent e8921f7 commit eb05da9

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

lib/start-proxy-action.js

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,14 @@ async function getProxyBinaryPath(logger: Logger): Promise<string> {
192192

193193
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
194194
if (!proxyBin) {
195-
const temp = await toolcache.downloadTool(proxyInfo.url);
195+
const temp = await toolcache.downloadTool(
196+
proxyInfo.url,
197+
undefined,
198+
undefined,
199+
{
200+
accept: "application/octet-stream",
201+
},
202+
);
196203
const extracted = await toolcache.extractTar(temp);
197204
proxyBin = await toolcache.cacheDir(
198205
extracted,

0 commit comments

Comments
 (0)