Skip to content
New issue

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

ignore cookie that don't respect RFC #181

Open
sthiriet opened this issue Nov 18, 2022 · 0 comments
Open

ignore cookie that don't respect RFC #181

sthiriet opened this issue Nov 18, 2022 · 0 comments

Comments

@sthiriet
Copy link

I have an error with session management because of a third party cookie that isn't compliant with the RFC on the same domain as my application.

Type check failed in assignment to $!value; expected CookieValue but got Str ("\{\"c\":\{\"w\":\{\...)
2022-11-18T11:54:14.561884582+01:00   in submethod BUILD at /opt/rakudo-pkg/share/perl6/site/sources/DD406B8779173EB9643677DE8EA7E202F6E780D3 (Cro::HTTP::Cookie) line 155
2022-11-18T11:54:14.561887408+01:00   in method unpack-cookie at /opt/rakudo-pkg/share/perl6/site/sources/7B83BBF2CF66E4F317ADB2909000EBF2F3667E50 (Cro::HTTP::Request) line 169
2022-11-18T11:54:14.561890206+01:00   in method cookie-value at /opt/rakudo-pkg/share/perl6/site/sources/7B83BBF2CF66E4F317ADB2909000EBF2F3667E50 (Cro::HTTP::Request) line 188
2022-11-18T11:54:14.561893296+01:00   in method existing-session at /opt/rakudo-pkg/share/perl6/site/sources/0A20249C825DC2EE7BAB17CFC838544F51103EE5 (Cro::HTTP::Session::InMemory) line 94

Is it possible to catch the error and ignore cookies that can't be parsed from my side? Or should it be treated on Cro side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant