Skip to content

Commit 1abae7a

Browse files
committed
drop the spread, use object.assign
1 parent 48dfbd5 commit 1abae7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/response.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ res.get = function(field){
708708

709709
res.clearCookie = function clearCookie(name, options) {
710710
// Force cookie expiration by setting expires to the past
711-
const opts = { path: '/', ...options, expires: new Date(1) }
711+
const opts = Object.assign({ path: '/' } , options, { expires: new Date(1) })
712712
// ensure maxAge is not passed
713713
delete opts.maxAge
714714

0 commit comments

Comments
 (0)