Remove the problematic redirect.

This commit is contained in:
Ivaylo Novakov 2020-08-05 18:18:36 +03:00
parent 71d2b3dc91
commit 8ee13bb96c
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 3 additions and 3 deletions

View File

@ -75,9 +75,9 @@ server.use(
proxy("nginx", {
// eslint-disable-next-line no-unused-vars
userResHeaderDecorator(headers, userReq, userRes, proxyReq, proxyRes) {
if (!userReq.url.endsWith("/")) {
userRes.redirect(307, `${userReq.url}/`);
}
// if (!userReq.url.endsWith('/')) {
// userRes.redirect(307, `${userReq.url}/`);
// }
if (headers.location && headers.location.match(startsWithSkylinkRegExp)) {
headers.location = headers.location.replace(
startsWithSkylinkRegExp,