mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/misc/utils: add one (1) line break
This commit is contained in:
@ -3,7 +3,8 @@ const redirectStatuses = new Set([301, 302, 303, 307, 308]);
|
|||||||
|
|
||||||
export async function getRedirectingURL(url, dispatcher, userAgent) {
|
export async function getRedirectingURL(url, dispatcher, userAgent) {
|
||||||
const location = await request(url, {
|
const location = await request(url, {
|
||||||
dispatcher, method: 'HEAD',
|
dispatcher,
|
||||||
|
method: 'HEAD',
|
||||||
headers: { 'user-agent': userAgent }
|
headers: { 'user-agent': userAgent }
|
||||||
}).then(r => {
|
}).then(r => {
|
||||||
if (redirectStatuses.has(r.statusCode) && r.headers['location']) {
|
if (redirectStatuses.has(r.statusCode) && r.headers['location']) {
|
||||||
|
Reference in New Issue
Block a user