Skip to content

Commit

Permalink
fix(server/proxy): use protocol to determine agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ginsburg authored and Jonathan Ginsburg committed Jan 28, 2021
1 parent 7a1344f commit d4738bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4738bb

Please sign in to comment.