mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-13 15:11:19 -04:00
Add accept headers
This commit is contained in:
@@ -138,6 +138,8 @@ get_blob_sha() {
|
|||||||
--silent \
|
--silent \
|
||||||
--location \
|
--location \
|
||||||
--request GET \
|
--request GET \
|
||||||
|
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||||
|
--header "Accept: application/vnd.oci.image.index.v1+json" \
|
||||||
--header "Authorization: Bearer $2" \
|
--header "Authorization: Bearer $2" \
|
||||||
"$3" | jq -r '.layers[0].digest'
|
"$3" | jq -r '.layers[0].digest'
|
||||||
else
|
else
|
||||||
@@ -145,6 +147,8 @@ get_blob_sha() {
|
|||||||
--silent \
|
--silent \
|
||||||
--location \
|
--location \
|
||||||
--request GET \
|
--request GET \
|
||||||
|
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||||
|
--header "Accept: application/vnd.oci.image.index.v1+json" \
|
||||||
--header "Authorization: Bearer $2" \
|
--header "Authorization: Bearer $2" \
|
||||||
"$3" | jq -r '.fsLayers[0].blobSum'
|
"$3" | jq -r '.fsLayers[0].blobSum'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user