Possibly fixes #1554
Auth proxies may send a redirect header and any status code
This commit is contained in:
+2
-4
@@ -236,11 +236,9 @@ async function cachedFetch(path: string): Promise<string> {
|
||||
}
|
||||
}
|
||||
const redirectHeader = response.headers.get("location");
|
||||
if (
|
||||
response.status === 401 && redirectHeader
|
||||
) {
|
||||
if (redirectHeader) {
|
||||
alert(
|
||||
"Received an authentication redirect, redirecting to URL: " +
|
||||
"Received an (authentication) redirect, redirecting to URL: " +
|
||||
redirectHeader,
|
||||
);
|
||||
location.href = redirectHeader;
|
||||
|
||||
Reference in New Issue
Block a user