From 8ee13bb96c7172879099aadf3c4cf586e1b82119 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Wed, 5 Aug 2020 18:18:36 +0300 Subject: [PATCH] Remove the problematic redirect. --- handshake-api/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handshake-api/index.js b/handshake-api/index.js index 41dad687..452d50c7 100644 --- a/handshake-api/index.js +++ b/handshake-api/index.js @@ -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,