forked from FoundKeyGang/FoundKey
fixup: add missing redirect argument
This commit is contained in:
parent
275136cf8b
commit
711bb8be7d
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,8 @@ export async function request(user: { id: User['id'] }, url: string, object: any
|
||||||
method: req.request.method,
|
method: req.request.method,
|
||||||
headers: req.request.headers,
|
headers: req.request.headers,
|
||||||
body,
|
body,
|
||||||
|
// don't allow redirects on the inbox
|
||||||
|
redirect: 'error',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -54,6 +56,7 @@ export async function signedGet(url: string, user: { id: User['id'] }): Promise<
|
||||||
url,
|
url,
|
||||||
method: req.request.method,
|
method: req.request.method,
|
||||||
headers: req.request.headers,
|
headers: req.request.headers,
|
||||||
|
redirect: 'manual',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.status >= 300 && res.status < 400) {
|
if (res.status >= 300 && res.status < 400) {
|
||||||
|
|
Loading…
Reference in a new issue