0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

change initial status code

This commit is contained in:
Víctor Losada Hernández
2024-09-16 22:52:56 +02:00
parent d8e174e143
commit 44262e2aae

View File

@@ -23,7 +23,7 @@ const mw = {
if (!req.get('authorization')) {
return res
.set('WWW-Authenticate', 'Basic realm="Authorization Required"')
.status(51)
.status(401)
.send('Authorization Required');
}
const [username, password] = Buffer.from(req.get('authorization').split(' ').pop(), 'base64')