From db0b3c8c6221e595ca1f20b4e5528fb2cdee6b4a Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 23 Jun 2023 15:42:24 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=B5=D0=B1=D0=B0=D0=B3=20=D0=B2=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/opds/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/core/opds/index.js b/server/core/opds/index.js index a2347d7..f2a244e 100644 --- a/server/core/opds/index.js +++ b/server/core/opds/index.js @@ -74,7 +74,12 @@ module.exports = function(app, config) { if (config.opds.password) { if (!config.opds.user) 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({ users: {[config.opds.user]: config.opds.password}, challenge: true,