Skip to content

Commit

Permalink
perf(lib/fastifysession): optimize split param (fastify#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 21, 2023
1 parent 7f319d0 commit 4f6575e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fastifySession.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function fastifySession (fastify, options, next) {
return function handleSession (request, reply, done) {
request.session = {}

const url = request.raw.url.split('?')[0]
const url = request.raw.url.split('?', 1)[0]
if (verifyPath(url, cookieOpts.path || '/') === false) {
done()
return
Expand Down

0 comments on commit 4f6575e

Please sign in to comment.