We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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); } }
The text was updated successfully, but these errors were encountered:
Can you provide an example of a valid cookie which is not a valid URI or cannot be decoded?
Sorry, something went wrong.
No branches or pull requests
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);
}
}
The text was updated successfully, but these errors were encountered: