mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] handler variable in createServer was global (!)
This commit is contained in:
parent
03475a5944
commit
25c06a3a95
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user