Добавил дебаг в комменте

This commit is contained in:
Book Pauk
2023-06-23 15:42:24 +07:00
parent e820c82c56
commit db0b3c8c62

View File

@@ -74,7 +74,12 @@ module.exports = function(app, config) {
if (config.opds.password) { if (config.opds.password) {
if (!config.opds.user) if (!config.opds.user)
throw new Error('User must not be empty if password set'); throw new Error('User must not be empty if password set');
/*
app.use((req, res, next) => {
console.log(req.headers);
next();
});
*/
app.use(opdsPaths, basicAuth({ app.use(opdsPaths, basicAuth({
users: {[config.opds.user]: config.opds.password}, users: {[config.opds.user]: config.opds.password},
challenge: true, challenge: true,