resurfaceio / logger-nodejs

Log API calls with Node.js
Apache License 2.0
16 stars 2 forks source link

Invalid JSON logged with express-session middleware #20

Closed RobDickinson closed 6 years ago

RobDickinson commented 6 years ago

Apparently express-session generates cookie headers that are string arrays, and these are not joined but passed along as JSON array elements, which leads to invalid JSON.

const session = require('express-session');
app.use(session({ secret: 'this-is-a-secret-token', cookie: { maxAge: 60000 }}));
RobDickinson commented 6 years ago

Fixed in 1.8.5