We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408229e commit 991b7eeCopy full SHA for 991b7ee
HISTORY.md
@@ -1,6 +1,7 @@
1
unreleased
2
==========
3
4
+ * Add debug log for pathname mismatch
5
* Add `partitioned` to `cookie` options
6
* Add `priority` to `cookie` options
7
* Fix handling errors from setting cookie
index.js
@@ -193,7 +193,11 @@ function session(options) {
193
194
// pathname mismatch
195
var originalPath = parseUrl.original(req).pathname || '/'
196
- if (originalPath.indexOf(cookieOptions.path || '/') !== 0) return next();
+ if (originalPath.indexOf(cookieOptions.path || '/') !== 0) {
197
+ debug('pathname mismatch')
198
+ next()
199
+ return
200
+ }
201
202
// ensure a secret is available or bail
203
if (!secret && !req.secret) {
0 commit comments