Skip to content

Commit d26ef56

Browse files
committed
[fix] dont use bind in the one case we do
1 parent 607f96c commit d26ef56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/http-proxy/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function ProxyServer(options) {
104104
return ws[pass];
105105
});
106106

107-
this.on('error', this.onError.bind(this));
107+
this.on('error', this.onError, this);
108108

109109
}
110110

0 commit comments

Comments
 (0)