2 Commits

Author SHA1 Message Date
ciiiii
b1b48aa7d9 Fix header 2024-06-14 02:47:02 +08:00
ciiiii
861a6a8bb1 Return regsitry version header 2024-06-14 02:44:35 +08:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
name: Deploy to Cloudflare Workers(Staging)
on:
pull_request_target:
pull_request:
branches:
- master
paths-ignore:
- '**.md'
repository_dispatch:

View File

@@ -68,6 +68,7 @@ async function handleRequest(request) {
`Bearer realm="https://${url.hostname}/v2/auth",service="cloudflare-docker-proxy"`
);
}
headers.set("Docker-Distribution-API-Version", "registry/2.0");
return new Response(JSON.stringify({ message: "UNAUTHORIZED" }), {
status: 401,
headers: headers,