abler-api 0.1.45 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/pp-util.js +2 -1
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1429,7 +1429,8 @@ class apiUtil$2 {
|
|
|
1429
1429
|
return res.sendStatus(401);
|
|
1430
1430
|
}
|
|
1431
1431
|
} catch (e) {
|
|
1432
|
-
|
|
1432
|
+
res.set('WWW-Authenticate', `Basic realm=${e.message}`);
|
|
1433
|
+
return res.sendStatus(401);
|
|
1433
1434
|
}
|
|
1434
1435
|
|
|
1435
1436
|
return next();
|