I'm not sure if this is a bug or rather a feature, but I need the %2F to remain in the req.url:
proxy.proxyRequest req, res,
host : host
port : port
Maybe you could me to the place where I can change this behavior in an own fork?
As far as I can tell, node-http-proxy doesn't modify the url at all. It could potentially be happening in core's http library, but without more information, it's hard to say. Can you gist a larger code sample for us to see?
This strikes me as a bug.