Fix header

This commit is contained in:
ciiiii
2024-06-14 02:47:02 +08:00
parent 861a6a8bb1
commit b1b48aa7d9

View File

@@ -68,7 +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");
headers.set("Docker-Distribution-API-Version", "registry/2.0");
return new Response(JSON.stringify({ message: "UNAUTHORIZED" }), {
status: 401,
headers: headers,