From 25c06a3a952068de6a24c643cb0c872f7b9a0846 Mon Sep 17 00:00:00 2001 From: Dominic Tarr Date: Sat, 23 Jul 2011 05:40:29 -0700 Subject: [PATCH] [fix] handler variable in createServer was global (!) --- lib/node-http-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 4c530632f..227d06f34 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -128,7 +128,7 @@ exports.setMaxSockets = function (value) { exports.createServer = function () { var args = Array.prototype.slice.call(arguments), callback = typeof args[0] === 'function' && args.shift(), - options = {}, port, host, forward, silent, proxy, server; + options = {}, port, host, forward, silent, proxy, server, handler; if (args.length >= 2) { port = args[0];