ngmoco/falcore — pull request #12 by JalfResi (2012-04-30 15:43:13+00:00)
Title: Added RewriteHost flag for upstream filter

I've added the rewrite-host option we discussed in Issue #11. Could you please give it a quick review to make sure I haven't done anything stupid.

Overview
-------------
Simply added a RewriteHost boolean flag to Upstream type. If set to true then the Host header of the request will be rewritten to point to the host and port specified in the Upstream type. This is so that you can have a Falcore server sat on one address proxying upstream requests to a backend on another address.

I've also added this to the ping code too, so that the ping process pings the rewritten host.

I look forward to your feedback.

Cheers,
Ben