diff --git a/lib/cors-anywhere.js b/lib/cors-anywhere.js index 2752231..17553ab 100644 --- a/lib/cors-anywhere.js +++ b/lib/cors-anywhere.js @@ -184,7 +184,7 @@ var getHandler = exports.getHandler = function(options) { }); // Only add port if it was explicitly set - req.headers.host = host + (match[4] ? ':' + port : ''); + req.headers.host = hostname + (match[4] ? ':' + port : ''); proxyRequest(req, res, proxy, full_url, { host: hostname,