On Mon, Oct 4, 2010 at 5:49 PM, Paul Davis <[email protected]> wrote:

> I'm not entirely sure about rewriting headers. For the most part I
> wanted to make sure that I wasn't modifying headers in anyway. If
> there's a specific set of headers that need to be handled then we can
> take a look at adding that in.
>
At least Location need cleaning at least since you get full headers
and pass them to mochiweb directly in start_response. A remote server
can set a Location to /some/path but you display behind
/_proxied/some/path. Also during redirection (302/303) , rewriting
locaton may be needed too though redirecting isn't handled yet.

I've already some code for that from couchdbproxy. Will provide a patch.
- benoit

Reply via email to