pkrumins/nodejs-proxy — pull request #14 by jtlebi (2012-02-05 14:29:23+00:00)
Title: X-Forwarded-For header + better logging

Hi !

Time or another update on my side. I enhanced logging support both on the remote server side and the proxy side.

For the remote server, I added an option to handle the "X-Forwarded-For" header to let it know where to request really comes from. Of course the server will need to add the logic to read it and detect whether to trust it or not. At least, it is a "de facto" standard header.

On the proxy side, I enhanced to output by adding the HTTP target host.