Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

Commit

Permalink
fix(cookie): Pass key to append method when clearing cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 9, 2016
1 parent 211610f commit f064816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cookie/index.js
Expand Up @@ -207,5 +207,5 @@ Cookie.clear = function (req, res, key, options) {
options = options || {}
options.expires = new Date(1)
const cookie = parser.serialize(key, String(''), options)
Cookie._append(req, res, cookie)
Cookie._append(req, res, key, cookie)
}

0 comments on commit f064816

Please sign in to comment.