From b3b893b8f31ec7a10203eea0a37708512b4f9097 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 9 Feb 2025 17:48:37 +0600 Subject: [PATCH] api/misc/utils: add one (1) line break --- api/src/misc/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/misc/utils.js b/api/src/misc/utils.js index ffa754338..76d7a3eb4 100644 --- a/api/src/misc/utils.js +++ b/api/src/misc/utils.js @@ -3,7 +3,8 @@ const redirectStatuses = new Set([301, 302, 303, 307, 308]); export async function getRedirectingURL(url, dispatcher, userAgent) { const location = await request(url, { - dispatcher, method: 'HEAD', + dispatcher, + method: 'HEAD', headers: { 'user-agent': userAgent } }).then(r => { if (redirectStatuses.has(r.statusCode) && r.headers['location']) {