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
+
I'm not sure if this is a bug or a specification of @edge-runtime/cookies. If a cookie contains spaces, they may be encoded as a + sign. (e.g: Rails)
@edge-runtime/cookies
Current Behavior:
const headers = new Headers({ cookie: 'a=hello+world' }) const cookies = new RequestCookies(headers) const cookie = cookies.get('a') expect(cookie).toEqual({ name: 'a', value: 'hello+world' })
Expected behavior/code
const headers = new Headers({ cookie: 'a=hello+world' }) const cookies = new RequestCookies(headers) const cookie = cookies.get('a') expect(cookie).toEqual({ name: 'a', value: 'hello world' })
Possible solution
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
Additional context/screenshots
N/A
The text was updated successfully, but these errors were encountered:
BTY, CookieStore API returns raw values?
Sorry, something went wrong.
No branches or pull requests
Bug Report
I'm not sure if this is a bug or a specification of
@edge-runtime/cookies
.If a cookie contains spaces, they may be encoded as a
+
sign. (e.g: Rails)Current Behavior:
Expected behavior/code
Possible solution
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
Additional context/screenshots
N/A
The text was updated successfully, but these errors were encountered: