style: format prettier violations
This commit is contained in:
1 parent
71e239060c
commit
4546821023
2 files changed
+6
-2
No files matched your search
+4
-1
@@ -83,7 +83,10 @@ async function handleRequest(request, env, ctx) {
|
||||
|
||||
if (!response) {
|
||||
// Handle Docker authentication explicitly
|
||||
if (isDocker && (url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))) {
|
||||
if (
|
||||
isDocker &&
|
||||
(url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))
|
||||
) {
|
||||
response = await handleDockerAuth(request, url, config);
|
||||
} else {
|
||||
// Platform detection using transform patterns
|
||||
|
||||
@@ -46,7 +46,8 @@ describe('Docker Authentication', () => {
|
||||
return new Response('', {
|
||||
status: 401,
|
||||
headers: {
|
||||
'WWW-Authenticate': 'Bearer realm="https://auth.docker.io/token",service="registry.docker.io"'
|
||||
'WWW-Authenticate':
|
||||
'Bearer realm="https://auth.docker.io/token",service="registry.docker.io"'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user