Skip to content

Commit d878ab2

Browse files
committed
drop the spread, use object.assign
1 parent 4668a6e commit d878ab2

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
@@ -698,7 +698,7 @@ res.get = function(field){
698698

699699
res.clearCookie = function clearCookie(name, options) {
700700
// Force cookie expiration by setting expires to the past
701-
const opts = { path: '/', ...options, expires: new Date(1) }
701+
const opts = Object.assign({ path: '/' } , options, { expires: new Date(1) })
702702
// ensure maxAge is not passed
703703
delete opts.maxAge
704704

0 commit comments

Comments
 (0)