mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 23:03:58 +00:00
fixed headers sent error
This commit is contained in:
@@ -22,7 +22,8 @@ function unauthorizedResponse(req, res, text) {
|
|||||||
// if (req.path == getExpressPath('/connections/list')) {
|
// if (req.path == getExpressPath('/connections/list')) {
|
||||||
// return res.json([]);
|
// return res.json([]);
|
||||||
// }
|
// }
|
||||||
return res.sendStatus(401).send(text);
|
|
||||||
|
return res.status(401).send(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
function authMiddleware(req, res, next) {
|
function authMiddleware(req, res, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user