I also need the ability to follow redirects automatically, but I realize the original #316 solution was intrusive in that it forced everyone to use follow-redirects. With a little more work, I wanted to present this solution, which instead allows for a dependency injection of request modules into the proxy. This alleviates express-http-proxy of any responsibility to supportfollow-redirects directly, and allows for custom request modules as well.
I also need the ability to follow redirects automatically, but I realize the original #316 solution was intrusive in that it forced everyone to use
follow-redirects
. With a little more work, I wanted to present this solution, which instead allows for a dependency injection of request modules into the proxy. This alleviatesexpress-http-proxy
of any responsibility to supportfollow-redirects
directly, and allows for custom request modules as well.