mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Temporary fix for 401 errors
This commit is contained in:
parent
d28ab919bb
commit
d76a059525
@ -36,7 +36,10 @@ export class HomeServerRequest implements IHomeServerRequest {
|
|||||||
this._promise = sourceRequest.response().then(response => {
|
this._promise = sourceRequest.response().then(response => {
|
||||||
log?.set("status", response.status);
|
log?.set("status", response.status);
|
||||||
// ok?
|
// ok?
|
||||||
if (response.status >= 200 && response.status < 300) {
|
// todo: register endpoint indicates our progress in using the user interactive
|
||||||
|
// authentication using 401 responses
|
||||||
|
// passing through all 401 responses as a temporary fix
|
||||||
|
if (response.status >= 200 && response.status < 300 || response.status === 401) {
|
||||||
log?.finish();
|
log?.finish();
|
||||||
return response.body;
|
return response.body;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user