mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2025-12-06 14:42:51 +08:00
Return regsitry version header
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user