Permalink
Browse files

Update cookie.

  • Loading branch information...
1 parent d072fb7 commit de2cbb31fdce7c110361f59271730710f8d5034a @JacksonTian committed Nov 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookie.js
View
2 cookie.js
@@ -3,7 +3,7 @@ exports.parse = function (cookies) {
var pairs = cookies.split(";");
pairs.forEach(function (pair) {
var kv = pair.split("=");
- map[kv[0]] = kv[1] || "";
+ map[kv[0].trim()] = kv[1] || "";
});
return map;
};

0 comments on commit de2cbb3

Please sign in to comment.