aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-20 22:45:14 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-20 22:45:14 +0200
commitf9b2d2cedd1b669516328b98e23f0c2298581025 (patch)
tree34f180070bf7cfb3036d22342f865f52666c0522 /server/middlewares
parentec8d8440a893ba64075da2e57ea04c7976e0b303 (diff)
downloadPeerTube-f9b2d2cedd1b669516328b98e23f0c2298581025.tar.gz
PeerTube-f9b2d2cedd1b669516328b98e23f0c2298581025.tar.zst
PeerTube-f9b2d2cedd1b669516328b98e23f0c2298581025.zip
Fix client peer dependencies
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/oauth.js2
1 files changed, 1 insertions, 1 deletions
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) {
23 return res.sendStatus(500) 23 return res.sendStatus(500)
24 } 24 }
25 25
26 if (res.statusCode === 401 || res.statusCode === 400) return res.end() 26 if (res.statusCode === 401 || res.statusCode === 400 || res.statusCode === 503) return res.end()
27 27
28 return next() 28 return next()
29 }) 29 })