From a805c4f0f947bce39414567397147bde7ebe7390 Mon Sep 17 00:00:00 2001 From: Dimosthenis Kastrinakis Date: Sun, 3 Mar 2024 23:19:06 +0200 Subject: [PATCH] Add support for plain asterisk route --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d41b2378..fd20e58f 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,7 @@ function session(options) { // pathname mismatch var originalPath = parseUrl.original(req).pathname || '/' - if (originalPath.indexOf(cookieOptions.path || '/') !== 0) { + if (originalPath.indexOf(cookieOptions.path || '/') !== 0 && originalPath !== '*') { debug('pathname mismatch') next() return