Open smill01 opened 9 years ago
I think you are using an older version of http-proxy
since that line number doesn't exist. Based on the variable name I believe the code in question is now located here.
We would accept a pull-request that:
urlParser
option to new HttpProxy
instances, defaulting to url.parse
setupOutgoing
in the options
parameterurl.parse
.
In http-proxy.js around line 241, url.parse is used to extract the request path: outgoing.path = url.parse(req.url).path; For example, an URL like /xxx/Tenant('xxx') is proxied as /xxx/Tenant(%27xxx%27).
We have consumers that cannot handle the encoded URL, and I cannot find a way to monkey-patch that method. Would it be possible to make this encoding optional? Use req.path in that case instead?