mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 04:31:49 +02:00
fixup! Add a dangerzone-image
CLI script
This commit is contained in:
parent
ccae6c5b16
commit
5202d79270
1 changed files with 1 additions and 4 deletions
|
@ -99,10 +99,7 @@ def list_manifests(image_str: str) -> list:
|
||||||
|
|
||||||
def get_blob(image: Image, digest: str) -> requests.Response:
|
def get_blob(image: Image, digest: str) -> requests.Response:
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
f"{_url(image)}/blobs/{digest}",
|
f"{_url(image)}/blobs/{digest}", headers=_get_auth_header(image)
|
||||||
headers={
|
|
||||||
"Authorization": f"Bearer {_get_auth_token(image)}",
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue