compat(opds): fallback to Basic auth if no WWW-Authenticate challenge in the response headers, closes #2656 (#2673)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user