Skip to content
Myr

Merge branch 'master' of github.com:visionmedia/express

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents a231406, da6524b · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/response.js+1 added
578 unmodified lines
579 options = utils.merge({}, options);580 var secret = this.req.secret;581 var signed = options.signed;582 if (signed && !secret) throw new Error('connect.cookieParser("secret") required for signed cookies');583 if ('number' == typeof val) val = val.toString();584 if ('object' == typeof val) val = 'j:' + JSON.stringify(val);585 if (signed) val = 's:' + sign(val, secret);586 if ('maxAge' in options) {587 options.expires = new Date(Date.now() + options.maxAge);
170 unmodified lines