Invalid cookie value error in Kemal. How to fix?

No wait, I was totally wrong :man_facepalming: The cookie value is legit. It can be wrapped in double quotes.

HTTP::Cookies::Parser correctly recognizes the quoted value, but it doesn’t dequote when creating the HTTP::Cookie instance.

Fix in Fix `HTTP::Cookie` parse quoted cookie value by straight-shoota · Pull Request #10853 · crystal-lang/crystal · GitHub

1 Like