From d26ef56e1bc2a1232b06c01b4740e3bf35d63eda Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Wed, 22 Apr 2015 11:09:05 -0400 Subject: [PATCH] [fix] dont use bind in the one case we do --- lib/http-proxy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-proxy/index.js b/lib/http-proxy/index.js index f86a7d8..7a5e1d2 100644 --- a/lib/http-proxy/index.js +++ b/lib/http-proxy/index.js @@ -104,7 +104,7 @@ function ProxyServer(options) { return ws[pass]; }); - this.on('error', this.onError.bind(this)); + this.on('error', this.onError, this); }