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 4668a6e commit d878ab2Copy full SHA for d878ab2
lib/response.js
@@ -698,7 +698,7 @@ res.get = function(field){
698
699
res.clearCookie = function clearCookie(name, options) {
700
// Force cookie expiration by setting expires to the past
701
- const opts = { path: '/', ...options, expires: new Date(1) }
+ const opts = Object.assign({ path: '/' } , options, { expires: new Date(1) })
702
// ensure maxAge is not passed
703
delete opts.maxAge
704
0 commit comments