fixup: add missing redirect argument

This commit is contained in:
Johann150 2022-12-21 21:04:54 +01:00
parent 275136cf8b
commit 711bb8be7d
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -27,6 +27,8 @@ export async function request(user: { id: User['id'] }, url: string, object: any
method: req.request.method,
headers: req.request.headers,
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,
method: req.request.method,
headers: req.request.headers,
redirect: 'manual',
});
if (res.status >= 300 && res.status < 400) {