forked from GitHub/cloudflare-docker-proxy
Compare commits
2 Commits
master
...
yscai/regi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1b48aa7d9 | ||
|
|
861a6a8bb1 |
@@ -68,6 +68,7 @@ async function handleRequest(request) {
|
|||||||
`Bearer realm="https://${url.hostname}/v2/auth",service="cloudflare-docker-proxy"`
|
`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" }), {
|
return new Response(JSON.stringify({ message: "UNAUTHORIZED" }), {
|
||||||
status: 401,
|
status: 401,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user