Skip to content

Commit

Permalink
[fix] handler variable in createServer was global (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Jul 23, 2011
1 parent 03475a5 commit 25c06a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 25c06a3

Please sign in to comment.