1
0
Fork 0

Fix transport.set call in sessions middleware

This commit is contained in:
Alan Plum 2016-04-12 16:15:07 +02:00
parent 5d765be524
commit 9e021cbc57
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ module.exports = function sessionMiddleware(cfg) {
sid = storage.forClient(req.session);
for (const transport of transports.reverse()) {
if (typeof transport.set === 'function') {
transport.set(req, sid);
transport.set(res, sid);
}
}
} else if (payload) {