fix secondary get with token
This commit is contained in:
parent
06b2ca9b74
commit
acab3bc116
2
index.js
2
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}`,
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user