koa-proxies icon indicating copy to clipboard operation
koa-proxies copied to clipboard

feat: call events.error handler from error callback

Open whenlit opened this issue 2 years ago • 0 comments

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.

whenlit avatar Jun 28 '22 11:06 whenlit