We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86750c7 commit ae493b5Copy full SHA for ae493b5
lib/http-proxy/index.js
@@ -73,7 +73,7 @@ function createRightProxy(type) {
73
* refer to the connection socket
74
* pass(req, socket, options, head)
75
*/
76
- if(passes[i](req, res, cbl ? false : this, head, cbl)) { // passes can return a truthy value to halt the loop
+ if(passes[i](req, res, cbl ? false : {emit:this.emit.bind(this), options:options}, head, cbl)) { // passes can return a truthy value to halt the loop
77
break;
78
}
79
0 commit comments