dvonlehman / express-request-proxy

Advanced streaming http request proxy middleware for Express with support for custom routes, caching, and response transforms.
96 stars 38 forks source link

Use host header to populate x-forwarded-host and x-forwarded-port #12

Closed DaleLJefferson closed 8 years ago

DaleLJefferson commented 8 years ago

The backend behind my proxy requires a x-forwarded-host and x-forwarded-port header. This pull request adds the relative information from the host header.

Pull request created #11

dvonlehman commented 8 years ago

Nice addition. I will be publishing this to npm later today as a new version 2.0.0. I'm in the midst of upgrading the npm dependencies as we speak.

DaleLJefferson commented 8 years ago

Thanks for merging this, i'm using express-request-proxy in a large enterprise application, so far it's working nicely, I will report / fix any other issues I find.