Skip to content

Commit

Permalink
fix: fixed stack overflow issue on 1200+ vhosts
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Apr 26, 2021
1 parent 18e6a24 commit c002ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -54,7 +54,9 @@ function vhost (hostname, handle) {
var vhostdata = vhostof(req, regexp)

if (!vhostdata) {
return next()
return process.nextTick(function() {
return next();
})
}

// populate
Expand Down

0 comments on commit c002ad0

Please sign in to comment.