Commit 40bb89c9 authored by Bryan Tong's avatar Bryan Tong
Browse files

Merge branch 'fixCookie' into 'master'

Correct cookie parsing issue, adjust kado remote.

See merge request kado/kado-web!2
parents 19e6097b 1796b74b
Pipeline #560 failed with stages
in 2 minutes and 4 seconds
......@@ -49,7 +49,7 @@ if (process.env.command !== 'session' && cluster.isMaster()) {
req.query = new URL(`http://localhost${req.url}`).searchParams
})
// add a session handler
app.use((req) => { req.cookie = Parser.cookie(req.headers.cookie) })
app.use((req) => { req.cookie = Parser.cookie('' + req.headers.cookie) })
app.use(Session.getMiddleware({ store: new Session.SessionStoreLocal() }))
// install routes
app.get('/', (req, res) => {
......
......@@ -19,7 +19,7 @@
},
"main": "./app.js",
"dependencies": {
"kado": "git+https://git.nullivex.com/kado/kado",
"kado": "git+https://git.nullivex.com/nullivex/kado#polish",
"mustache": "^4.0.0"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment