diff --git a/src/compiler.ts b/src/compiler.ts index ff3b7ab..ce371c5 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -196,6 +196,8 @@ export class NexeCompiler { throw new Error(`${assetName} not available, create it using the --build flag`) } const filename = this.getNodeExecutableLocation(target) + // Remove the authorization, as the download is done via amazon S3 and does not need the token + delete downloadOptions.headers.Authorization await download(asset.browser_download_url, dirname(filename), downloadOptions).on( 'response', (res: IncomingMessage) => {