Skip to content

Commit

Permalink
api/misc/utils: add one (1) line break
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Feb 9, 2025
1 parent 9d2f779 commit b3b893b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/misc/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit b3b893b

Please sign in to comment.