Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

parseCookies error when cookie value has '=' #338

Open
yes1am opened this issue Feb 14, 2022 · 0 comments
Open

parseCookies error when cookie value has '=' #338

yes1am opened this issue Feb 14, 2022 · 0 comments

Comments

@yes1am
Copy link

yes1am commented Feb 14, 2022

parseCookies("__qc__k=TC_MK=123123;");

should return: 
{
  __qc__k: 'TC_MK=123123'
}

but return:
{
  '': 'undefined',
  __qc__k: 'TC_MK'
}

This is not the same as the Chrome result, see the Chrome screenshot below:

image

image

Then the value of the cookie was right, so I migrated the code

@yes1am yes1am changed the title parseCookies error parseCookies error when cookie value has '=' Feb 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant