1
0
Fork 0
This commit is contained in:
Alan Plum 2015-06-03 12:11:26 +02:00
parent 11f640e874
commit e1186eb8e0
1 changed files with 0 additions and 3 deletions

View File

@ -174,9 +174,6 @@ function Sessions(opts) {
if (opts.cookie.secret && typeof opts.cookie.secret !== 'string') {
throw new Error('Cookie secret must be a string or empty.');
}
if (!opts.cookie.name) {
opts.cookie.name = 'sid';
}
} else if (opts.type === 'header') {
if (opts.header && typeof opts.header !== 'string') {
throw new Error('Header name must be a string or empty.');