From cbd4030e5f2946dc093bba7ac4782186db3e1431 Mon Sep 17 00:00:00 2001 From: Bogdan Finn Date: Thu, 1 Jun 2023 22:03:45 +0200 Subject: [PATCH] allow doublequotes in cookie values; --- cookie.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookie.go b/cookie.go index 4bf4e2f4..28a5f817 100644 --- a/cookie.go +++ b/cookie.go @@ -377,7 +377,11 @@ func sanitizeCookieValue(v string) string { } func validCookieValueByte(b byte) bool { - return 0x20 <= b && b < 0x7f && b != '"' && b != ';' && b != '\\' + return 0x20 <= b && + b < 0x7f && + // b != '"' && + b != ';' && + b != '\\' } // path-av = "Path=" path-value