Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[minor] code style changes

  • Loading branch information...
commit 8b48b7e0af656fdbd6da2b16ec6365beec47c302 1 parent caa1f49
@dominictarr dominictarr authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 lib/node-http-proxy.js
View
11 lib/node-http-proxy.js
@@ -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) {
//
@@ -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) {
//
Please sign in to comment.
Something went wrong with that request. Please try again.