Skip to content

Commit

Permalink
chore: accept oci manifests (#904)
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Co-authored-by: Guilhem Barthés <[email protected]>
  • Loading branch information
ThibaultFy and guilhem-barthes authored May 23, 2024
1 parent c1d1fde commit b48fa01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/substrapp/docker_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def get_registry_auth() -> typing.Optional[DockerAuthDict]:


def get_request_docker_api(
path: str, header_accept: str = "application/vnd.docker.distribution.manifest.v2+json"
path: str,
header_accept: str = (
"application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.manifest.v1+json"
),
) -> dict:
headers = {"Accept": header_accept}

Expand Down

0 comments on commit b48fa01

Please sign in to comment.