too busy check on prod

v1.18.x
barisusakli 10 years ago
parent 628cecdd36
commit 016aef1716

@ -221,7 +221,7 @@ middleware.privateUploads = function(req, res, next) {
}; };
middleware.busyCheck = function(req, res, next) { middleware.busyCheck = function(req, res, next) {
if (toobusy()) { if (global.env === 'production' && toobusy()) {
res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html')); res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));
} else { } else {
next(); next();

Loading…
Cancel
Save