From acab3bc1164643c21e6fa0bf82ad054951da9b94 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Fri, 18 Aug 2023 21:46:45 -0700 Subject: [PATCH] fix secondary get with token --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 70cc0d2..3041f67 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ async function get_manifest(input) { if (status === 401 && headers['www-authenticate']) { await get_token(headers['www-authenticate'], input); - ({ status, headers, body } = await http_req(input.insecure_registry, 'GET', input.registry_url + path, { + ({ status, headers, body } = await http_req('GET', input.registry_url + path, { accept: manifest_media_type, authorization: `Bearer ${input.token}`, }));