From f9b2d2cedd1b669516328b98e23f0c2298581025 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Sep 2016 22:45:14 +0200 Subject: Fix client peer dependencies --- server/middlewares/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares') diff --git a/server/middlewares/oauth.js b/server/middlewares/oauth.js index 91a990509..08584c41c 100644 --- a/server/middlewares/oauth.js +++ b/server/middlewares/oauth.js @@ -23,7 +23,7 @@ function authenticate (req, res, next) { return res.sendStatus(500) } - if (res.statusCode === 401 || res.statusCode === 400) return res.end() + if (res.statusCode === 401 || res.statusCode === 400 || res.statusCode === 503) return res.end() return next() }) -- cgit v1.2.3