-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error when cookies contain double quotes #711
Comments
Hello, Same problem for me ! The application I test uses double quoted cookies values with separators + uppercase headers Cookie: foo-boa="DATA-NET-CMP:1234564:123456789789798AEZEAZEA:zzzX" I ended up patching net/* go sources to make it permissive :-(
Although it' dirty hacks, I didn't find any elegant way to do it. Olivier |
Yeah, when I posted this issue I skimmed a bunch of golang github issues and discussions and I don't think I saw a nice way to work around this... |
you can also get the cookie directly from the r.header["cookie"] and parse it yourself but it's not elegant neither. |
Hello All, |
Try URL encoding the string as a workaround. Eg:
|
While testing something else, I stumbled on a small bug with double quotes in cookie values... The following code:
produces this... warning?:
It seems that for some reason, the Go standard library logs this directly, which is super annoying... Skimming some golang issues, it's not exactly clear how we should escape those values...
The text was updated successfully, but these errors were encountered: