Skip to content

Commit

Permalink
server: fix proxyTo() call
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Aug 29, 2010
1 parent 7497b0f commit b8eb39d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Expand Up @@ -68,8 +68,7 @@ function routingMiddleware(req, res, next) {
}
idx = idx % BACKEND_PORTS.length;

console.log({proxyTo:{idx:idx,port:BACKEND_PORTS[idx]}});
req.proxyTo(BACKEND_PORTS, BACKEND_PORTS[idx]);
req.proxyTo(BACKEND_HOST, BACKEND_PORTS[idx]);
}
};

Expand Down

0 comments on commit b8eb39d

Please sign in to comment.