Open milgner opened 4 years ago
I can confirm what @milgner is reporting here. Looks like the issue is that you are using the URL function in the log call
@milgner could you please provide a log with your sample?
I test it using the https://github.com/vagusX/koa-proxies/tree/master/samples/js project, and it seems ok
Confirming this also happens to me.
After defining a proxy target that includes a URL prefix (http://myproxy/some/path), the requests are proxied to the correct target URL, but the path component of the proxy target is left out of the log message.
I.e. a call to http://myapp/endpoint would call http://myproxy/some/path/endpoint but log a redirect to http://myproxy/endpoint instead.