change open.lbry.com code to 301 (#5804)

This commit is contained in:
jessopb 2021-03-31 17:16:19 -04:00 committed by GitHub
parent 58ec6a739c
commit f727b8b7c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ async function redirectMiddleware(ctx, next) {
} else { } else {
redirectUrl += openQuery; redirectUrl += openQuery;
} }
ctx.status = 301;
ctx.redirect(redirectUrl); ctx.redirect(redirectUrl);
return; return;
} }