koa-proxies
koa-proxies copied to clipboard
feat: call events.error handler from error callback
Since the error event is not emitted by the underlying http-proxy
when there is an error callback in place, add some code to manually call the error event handler if it is specified.
Fixes https://github.com/vagusX/koa-proxies/issues/69.