Currently, if a HTTP redirect is given by the proxied server, this is proxied as well.
This means that the browser will be redirected to things like http://localhost:some_port/xxx instead of just redirecting to xxx under the correct proxied path.
I think this just involves using some regex substitution as I think also e.g. apache reverse_proxy does.