Commit 2061c713 authored by Cloud9's avatar Cloud9 Committed by Charlie McConnell

Revert "update outgoing.headers.host incase the destination does proxying"

This reverts commit 65b7872e.
parent d6ea3a42
......@@ -195,8 +195,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
outgoing.path = req.url;
outgoing.headers = req.headers;
if(this.changeOrigin)
outgoing.headers.host = this.target.host + (this.target.port == 80 ? '' : ':' + this.target.port)
//
// Open new HTTP request to internal resource with will act
// as a reverse proxy pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment