vilu / purescript-browser-cookies

MIT License
4 stars 7 forks source link

Decoding Cookies doesn't handle all cases #1

Closed amcvega closed 2 years ago

amcvega commented 5 years ago

I tried using getCookies to retrieve cookie values and it silently failed yielding no results. I concluded the failure may have been due to my use of Base64 encoding in the cookie value. It was probably the use of '=' that was breaking the simple parser in bakeCookies.

I have implemented a new test and a new version of bakeCookies that you may want to review. Here is my fork and commit f6f78617075d2bfa9d7fa3259710a562b95ea59b