mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-13 14:16:25 +01:00
api/misc/utils: add one (1) line break
This commit is contained in:
parent
9d2f77949a
commit
b3b893b8f3
1 changed files with 2 additions and 1 deletions
|
@ -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']) {
|
||||
|
|
Loading…
Reference in a new issue