Ver código fonte

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

Book Pauk 2 anos atrás
pai
commit
db0b3c8c62
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      server/core/opds/index.js

+ 6 - 1
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,