Skip to content

Commit

Permalink
[minor] code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Aug 2, 2011
1 parent caa1f49 commit 8b48b7e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/node-http-proxy.js
Expand Up @@ -180,8 +180,7 @@ exports.createServer = function () {
host: host
});
}
if(middleware.length)
middleware.push(handler)
if(middleware.length) middleware.push(handler)
}
else if (proxy.proxyTable) {
//
Expand All @@ -191,14 +190,10 @@ exports.createServer = function () {
handler = function (req, res) {
proxy.proxyRequest(req, res);
}
if(middleware.length)
middleware.push(handler)
if(middleware.length) middleware.push(handler)
}

if(middleware.length)
//handler = callback = middleware.shift()
//else if (middleware.length)
handler = callback = stack(middleware, proxy);
if(middleware.length) handler = stack(middleware, proxy);

if (!handler) {
//
Expand Down

0 comments on commit 8b48b7e

Please sign in to comment.