Skip to content

Commit

Permalink
Add support for plain asterisk route
Browse files Browse the repository at this point in the history
  • Loading branch information
kasdimos committed Mar 3, 2024
1 parent 24d4972 commit a805c4f
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit a805c4f

Please sign in to comment.