compat(opds): fallback to Basic auth if no WWW-Authenticate challenge in the response headers, closes #2656 (#2673)

This commit is contained in:
Huang Xin
2025-12-10 16:57:44 +08:00
committed by GitHub
parent 80e11bb0ce
commit b95895cecf
@@ -210,6 +210,10 @@ export const probeAuth = async (
} else if (wwwAuthenticate.toLowerCase().startsWith('basic')) {
return createBasicAuth(finalUsername, finalPassword);
}
} else {
// Fallback to Basic auth if no WWW-Authenticate header
// some older Calibre-Web versions behave this way, see issue #2656
return createBasicAuth(finalUsername, finalPassword);
}
}