Now correctly handling subdomains without a custom config

This commit is contained in:
Aron Carroll 2012-05-27 12:59:16 +01:00
parent f08d133bde
commit 1f3444fc39

View File

@ -19,7 +19,7 @@ module.exports = Observable.extend({
utils.bindAll(this, methods);
},
getDefault: function (req, res, next) {
if (req.subdomain) {
if (req.subdomain && custom[req.subdomain]) {
return this.getCustom(req, res, next);
}
this.renderFiles(req, res);