thomasw/djproxy — pull request #6 by thomasw (2014-04-21 23:36:38+00:00)
Title: Fix X-Forwarded-Foo behavior

Ping @blaix - Let me know if this works for you.

This fixes:
* a problem with how djproxy was calculating the xff header (it should be adding the client IP address, not the server's IP address!)
* a problem with where djproxy was attaching the XFF header (it should send it to the downstream server, not back to the client!)

and it also makes djproxy start sending an X-Forwarded-Host header to the downstream proxy.