From fb2dcc20a604285ad2747cc98ee9466e9dd7e368 Mon Sep 17 00:00:00 2001 From: Jonathan Ginsburg Date: Wed, 27 Jan 2021 23:21:33 -0600 Subject: [PATCH] fix(server/proxy): config.protocol can control connection scheme --- lib/middleware/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware/proxy.js b/lib/middleware/proxy.js index 7c9a43214..2ce59124d 100644 --- a/lib/middleware/proxy.js +++ b/lib/middleware/proxy.js @@ -34,7 +34,7 @@ function parseProxyConfig (proxies, config) { const hostname = proxyDetails.hostname || config.hostname const protocol = proxyDetails.protocol || config.protocol - const https = proxyDetails.protocol === 'https:' + const https = protocol === 'https:' let port if (proxyDetails.port) { port = proxyDetails.port