We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc5d01 commit f1336fdCopy full SHA for f1336fd
1 file changed
middleware/archived-enterprise-versions.js
@@ -38,7 +38,8 @@ module.exports = async (req, res, next) => {
38
let isRedirect = false
39
if (versionSatisfiesRange(requestedVersion, `>${lastVersionWithoutArchivedRedirectsFile}`)) {
40
try {
41
- const redirectJson = await got(getProxyPath('redirects.json', requestedVersion))
+ const res = await got(getProxyPath('redirects.json', requestedVersion))
42
+ const redirectJson = JSON.parse(res.body)
43
44
if (redirectJson[req.path]) {
45
isRedirect = true
0 commit comments