From 77b86bf8b080b4a97f4711eeabcf74bc8d657647 Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 24 Jan 2023 19:50:41 +0100 Subject: [PATCH] Docker: update header for file retrieval Solves the "unavailable" message which sometimes appears after checking for updates --- plugins/dynamix.docker.manager/include/DockerClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.docker.manager/include/DockerClient.php b/plugins/dynamix.docker.manager/include/DockerClient.php index 5e7162ea8..dbba46ae5 100644 --- a/plugins/dynamix.docker.manager/include/DockerClient.php +++ b/plugins/dynamix.docker.manager/include/DockerClient.php @@ -445,7 +445,7 @@ class DockerUpdate{ /* * Step 2: Get www-authenticate header from manifest url to generate token or basic auth */ - $header = ['Accept: application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json']; + $header = ['Accept: application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.index.v1+json']; $digest_ch = getCurlHandle($manifestURL, 'HEAD', $header); preg_match('@www-authenticate:\s*Bearer\s*(.*)@i', $reply, $matches); if (!empty($matches[1])) {