Do not pass undefined authorization header
This commit is contained in:
parent
acb9cb18ee
commit
ebbe050cf6
3 changed files with 4 additions and 3 deletions
|
|
@ -178,7 +178,8 @@ async function downloadAndExtractZstdWithStreaming(
|
|||
logger: Logger,
|
||||
): Promise<string> {
|
||||
headers = Object.assign(
|
||||
{ "User-Agent": "CodeQL Action", authorization },
|
||||
{ "User-Agent": "CodeQL Action" },
|
||||
authorization ? { authorization } : {},
|
||||
headers,
|
||||
);
|
||||
const response = await new Promise<IncomingMessage>((resolve) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue