It seems the following commit introduces a bug and "autoRewite" doesn't work properly now: https://github.com/nodejitsu/node-http-proxy/commit/4edbb62cc5881b20e7dae5e6240e693b03fd3609 Method [setRedirectHostRewrite ](https://github.com/nodejitsu/node-http-proxy/blob/master/lib/http-proxy/passes/web-outgoing.js#L71) changes "location" header, but [writeHeaders ](https://github.com/nodejitsu/node-http-proxy/blob/master/lib/http-proxy/passes/web-outgoing.js#L107) ignores it and uses `rawHeaders` instead of `headers`
It seems the following commit introduces a bug and "autoRewite" doesn't work properly now: 4edbb62
Method setRedirectHostRewrite changes "location" header, but writeHeaders ignores it and uses
rawHeadersinstead ofheaders