You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@whitecolor what do you mean? the event is emit before anything happens. The only caveat here is that you must be using the event emitter interface and not passing a callback. this should be fixed in later versions.
@whitecolor The proxyReq event (or any event for that matter) will not be emitted if you provide an error callback to either the proxy.web or proxy.ws methods.
This behavior is not documented anywhere, to my knowledge. I had to read the code to figure it out.
@hgwood yes its remanent of when the callback use case used to not be an event emitter. This will be changed, if you want to take a stab at it, go for it :).
It seems that proxyReq event is not emitted for HTTP proxy:
https://github.com/nodejitsu/node-http-proxy/blob/3e8ee042fb8ac93e6f8c347aa4ce49eeec968645/lib/http-proxy/passes/web-incoming.js#L114
no other emits in the code.
The text was updated successfully, but these errors were encountered: