[fix] handler variable in createServer was global (!)

This commit is contained in:
Dominic Tarr 2011-07-23 05:40:29 -07:00
parent 03475a5944
commit 25c06a3a95

View File

@ -128,7 +128,7 @@ exports.setMaxSockets = function (value) {
exports.createServer = function () { exports.createServer = function () {
var args = Array.prototype.slice.call(arguments), var args = Array.prototype.slice.call(arguments),
callback = typeof args[0] === 'function' && args.shift(), 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) { if (args.length >= 2) {
port = args[0]; port = args[0];