diff --git a/lib/cookie/index.js b/lib/cookie/index.js index 2fe9907..3cda489 100644 --- a/lib/cookie/index.js +++ b/lib/cookie/index.js @@ -28,7 +28,7 @@ var Cookie = exports = module.exports = function Cookie(str, req) { // Map the key/val pairs str.split(/ *; */).reduce(function(obj, pair){ pair = pair.split(/ *= */); - obj[pair[0]] = pair[1] || true; + obj[pair[0].toLowerCase()] = pair[1] || true; return obj; }, this);