@ -151,7 +151,7 @@ middleware.buildHeader = function(req, res, next) {
function(next) {
controllers.api.getConfig(req, res, function(err, config) {
res.locals.config = config;
next();
next(err);
});
},
@ -163,9 +163,7 @@ middleware.buildHeader = function(req, res, next) {
}
], function(err) {
], next);
};
middleware.renderHeader = function(req, res, callback) {