Skip to content

Commit 2061c71

Browse files
Cloud9AvianFlu
Cloud9
authored andcommitted
Revert "update outgoing.headers.host incase the destination does proxying"
This reverts commit 65b7872.
1 parent d6ea3a4 commit 2061c71

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/node-http-proxy/http-proxy.js

-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
195195
outgoing.path = req.url;
196196
outgoing.headers = req.headers;
197197

198-
if(this.changeOrigin)
199-
outgoing.headers.host = this.target.host + (this.target.port == 80 ? '' : ':' + this.target.port)
200198
//
201199
// Open new HTTP request to internal resource with will act
202200
// as a reverse proxy pass

0 commit comments

Comments
 (0)