We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48dfbd5 commit 1abae7aCopy full SHA for 1abae7a
lib/response.js
@@ -708,7 +708,7 @@ res.get = function(field){
708
709
res.clearCookie = function clearCookie(name, options) {
710
// Force cookie expiration by setting expires to the past
711
- const opts = { path: '/', ...options, expires: new Date(1) }
+ const opts = Object.assign({ path: '/' } , options, { expires: new Date(1) })
712
// ensure maxAge is not passed
713
delete opts.maxAge
714
0 commit comments