From 176ad3d7067a84a62ed05964e67724ad0ce57705 Mon Sep 17 00:00:00 2001 From: Alban Mouton Date: Wed, 25 Jul 2018 10:10:15 +0200 Subject: [PATCH] fix: typo --- server/routers/application-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/application-proxy.js b/server/routers/application-proxy.js index 9718f290a3..34ed4fc81b 100644 --- a/server/routers/application-proxy.js +++ b/server/routers/application-proxy.js @@ -38,7 +38,7 @@ router.all('/:applicationId*', asyncWrap(async(req, res, next) => { resp.headers.location = new URL(exposedUrl).pathname + resp.headers.location } */ // Do not attempt to transform errors or redirects (transforming redirects causes hard to understand bugs) - if (res.statusCode !== 200) return false + if (resp.statusCode !== 200) return false if (resp.headers['content-encoding'] && resp.headers['content-encoding'] !== 'identity') { console.error(`A proxied application (${req.originalUrl}) sent compressed data (${resp.headers['content-encoding']})`) return false