Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add support for plain asterisk route
  • Loading branch information
kasdimos committed Mar 3, 2024
commit a805c4f0f947bce39414567397147bde7ebe7390
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down