Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.3 Alpha1
-
None
Description
When receiving this header:
Set-Cookie: test="test"; Version=1; Max-Age=1000; Expires=Mon, 11-Feb-2013 10:39:19 GMT; Path=/
If you parse and format again the cookie you get:
Cookie: test="\"test\""
I tested with the last versions of Firefox, Chrome and Internet Explorer and you always get:
Cookie: test="test"
You can easily get such a cookie with Tomcat:
Cookie tomcatCookie = new Cookie("test", "test");
tomcatCookie.setPath("/");
tomcatCookie.setMaxAge(1000);
response.addCookie(tomcatCookie);
The problem is that BrowserCompatSpec considers it as a Netscape style cookie because of expires attribute so the quotes are considered as being part of the value.