mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-03 21:49:06 -04:00
oci authenticator: Accept the right docker manifest when authenticating
Without this I got for the fedora registry: ``` getting token for https://registry.fedoraproject.org/v2/f32/flatpak-runtime/manifests/sha256:bd83b4f6974094848efac22b933419c1dbe11b553def148a82f821faf595de8a F: Anonymous authentication failed: Unexpected response status 404 from repo ```
This commit is contained in:
committed by
Alexander Larsson
parent
0290c154bf
commit
1ee132e70e
@@ -1015,6 +1015,9 @@ flatpak_oci_registry_get_token (FlatpakOciRegistry *self,
|
||||
|
||||
msg = soup_message_new_from_uri ("HEAD", uri);
|
||||
|
||||
soup_message_headers_replace (msg->request_headers, "Accept",
|
||||
FLATPAK_OCI_MEDIA_TYPE_IMAGE_MANIFEST ", " FLATPAK_DOCKER_MEDIA_TYPE_IMAGE_MANIFEST2);
|
||||
|
||||
stream = soup_session_send (self->soup_session, msg, NULL, error);
|
||||
if (stream == NULL)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user