Remove the problematic redirect.
This commit is contained in:
parent
71d2b3dc91
commit
8ee13bb96c
|
@ -75,9 +75,9 @@ server.use(
|
||||||
proxy("nginx", {
|
proxy("nginx", {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
userResHeaderDecorator(headers, userReq, userRes, proxyReq, proxyRes) {
|
userResHeaderDecorator(headers, userReq, userRes, proxyReq, proxyRes) {
|
||||||
if (!userReq.url.endsWith("/")) {
|
// if (!userReq.url.endsWith('/')) {
|
||||||
userRes.redirect(307, `${userReq.url}/`);
|
// userRes.redirect(307, `${userReq.url}/`);
|
||||||
}
|
// }
|
||||||
if (headers.location && headers.location.match(startsWithSkylinkRegExp)) {
|
if (headers.location && headers.location.match(startsWithSkylinkRegExp)) {
|
||||||
headers.location = headers.location.replace(
|
headers.location = headers.location.replace(
|
||||||
startsWithSkylinkRegExp,
|
startsWithSkylinkRegExp,
|
||||||
|
|
Reference in New Issue