Skip to content

Commit

Permalink
Revert "update outgoing.headers.host incase the destination does prox…
Browse files Browse the repository at this point in the history
…ying"

This reverts commit 65b7872.
  • Loading branch information
Cloud9 authored and AvianFlu committed Nov 17, 2011
1 parent d6ea3a4 commit 2061c71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/node-http-proxy/http-proxy.js
Expand Up @@ -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
Expand Down

1 comment on commit 2061c71

@coderarity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Please sign in to comment.