-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
After put node+connect in production 5% of request kill server... (multilanguage project)
CAUSE: Not always cookies is encoded with URIComponent, many requests have encoded cookies with escape
Patch lines in cookie/index.js
WAS:
obj[key] = decode(val)
My code for production:
try {
obj[key] = decode(val);
} catch(err) {
try {
obj[key] = unescape(val);
} catch(err){
console.log('FAIL DECODE COOKIE:', val);
}
}
Metadata
Metadata
Assignees
Labels
No labels