mirror of https://gitee.com/bigwinds/arangodb
Fix transport.set call in sessions middleware
This commit is contained in:
parent
5d765be524
commit
9e021cbc57
|
@ -96,7 +96,7 @@ module.exports = function sessionMiddleware(cfg) {
|
||||||
sid = storage.forClient(req.session);
|
sid = storage.forClient(req.session);
|
||||||
for (const transport of transports.reverse()) {
|
for (const transport of transports.reverse()) {
|
||||||
if (typeof transport.set === 'function') {
|
if (typeof transport.set === 'function') {
|
||||||
transport.set(req, sid);
|
transport.set(res, sid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (payload) {
|
} else if (payload) {
|
||||||
|
|
Loading…
Reference in New Issue