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