mirror of https://gitee.com/bigwinds/arangodb
Fixed #1355.
This commit is contained in:
parent
11f640e874
commit
e1186eb8e0
|
@ -174,9 +174,6 @@ function Sessions(opts) {
|
||||||
if (opts.cookie.secret && typeof opts.cookie.secret !== 'string') {
|
if (opts.cookie.secret && typeof opts.cookie.secret !== 'string') {
|
||||||
throw new Error('Cookie secret must be a string or empty.');
|
throw new Error('Cookie secret must be a string or empty.');
|
||||||
}
|
}
|
||||||
if (!opts.cookie.name) {
|
|
||||||
opts.cookie.name = 'sid';
|
|
||||||
}
|
|
||||||
} else if (opts.type === 'header') {
|
} else if (opts.type === 'header') {
|
||||||
if (opts.header && typeof opts.header !== 'string') {
|
if (opts.header && typeof opts.header !== 'string') {
|
||||||
throw new Error('Header name must be a string or empty.');
|
throw new Error('Header name must be a string or empty.');
|
||||||
|
|
Loading…
Reference in New Issue