Skip to content

Commit

Permalink
s/==/===/
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 11, 2010
1 parent 677ca7b commit 32bc8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/plugins/cookie.js
Expand Up @@ -19,7 +19,7 @@ var Request = require('express/request').Request,
exports.parseCookie = function(cookie) {
return cookie.split(/[;,] */).reduce(function(cookies, pair) {
var eql = pair.indexOf('=')
if (eql == -1) return cookies
if (eql === -1) return cookies
var key = queryString.unescape(pair.slice(0, eql).trim(), true)
var val = queryString.unescape(pair.slice(eql + 1).trim(), true)
var captures = val.match(/^("|')([^\1]*)\1$/)
Expand Down

0 comments on commit 32bc8dc

Please sign in to comment.