Remove the problematic redirect.
This commit is contained in:
parent
71d2b3dc91
commit
8ee13bb96c
|
@ -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,
|
||||
|
|
Reference in New Issue