From d4738bb385f26f8a6f7968e8cf7128dad4795037 Mon Sep 17 00:00:00 2001 From: Jonathan Ginsburg Date: Wed, 27 Jan 2021 23:21:33 -0600 Subject: [PATCH] fix(server/proxy): use `protocol` to determine agent --- 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