Compare commits

...

2 Commits

Author SHA1 Message Date
dc3b78f911
fix secondary get with token 2023-08-18 21:46:52 -07:00
acab3bc116
fix secondary get with token 2023-08-18 21:46:45 -07:00
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -2911,7 +2911,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}`,
}));

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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}`,
}));