Closed AjayPoshak closed 4 years ago
I think this regex is causing the issue: https://github.com/pillarjs/cookies/blob/fac05de8dfa77d722dac5237f0d8c54b6e0222ac/index.js#L23
Yes, this is a limitation of HTTP headers; Node.js would just throw later if this package did not. You need to encode your value in some of your own choosing. Perhaps using encodeURI or base64.
We support Indic languages as as value in our cookies. But it is breaking during setting cookies via this package. Value of cookie we're passing is
Here is the error log