From 9e021cbc57e8c0e547ccc431ce26a4a30a976732 Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Tue, 12 Apr 2016 16:15:07 +0200 Subject: [PATCH] Fix transport.set call in sessions middleware --- js/server/modules/@arangodb/foxx/sessions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/server/modules/@arangodb/foxx/sessions/index.js b/js/server/modules/@arangodb/foxx/sessions/index.js index a80f85c6c7..1f47a9d576 100644 --- a/js/server/modules/@arangodb/foxx/sessions/index.js +++ b/js/server/modules/@arangodb/foxx/sessions/index.js @@ -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) {