api/misc/utils: add one (1) line break

This commit is contained in:
wukko 2025-02-09 17:48:37 +06:00
parent 9d2f77949a
commit b3b893b8f3
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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']) {