Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

backport c388999

  • Loading branch information...
commit 3680edca256ff67d4d53b1ae6b3a5421d39e9ac8 1 parent 9319760
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/middleware/vhost.js
View
2  lib/middleware/vhost.js
@@ -36,7 +36,7 @@ module.exports = function vhost(hostname, server){
var host = req.headers.host.split(':')[0];
if (req.subdomains = regexp.exec(host)) {
req.subdomains = req.subdomains[0].split('.').slice(0, -1);
- server.emit("request", req, res, next);
+ server.emit("request", req, res);
} else {
next();
}
Please sign in to comment.
Something went wrong with that request. Please try again.