From: <mgu...@us...> - 2013-01-29 08:17:29
|
Revision: 8059 http://sourceforge.net/p/htmlunit/code/8059 Author: mguillem Date: 2013-01-29 08:17:24 +0000 (Tue, 29 Jan 2013) Log Message: ----------- 1/1/2000 is a valid format for a cookie expiration date Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java 2013-01-29 08:16:42 UTC (rev 8058) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java 2013-01-29 08:17:24 UTC (rev 8059) @@ -772,6 +772,7 @@ "EEE dd MMM yyyy HH mm ss z ", "EEE dd MM yy HH mm ss z ", "EEE dd MM yyyy HH mm ss z ", + "d/M/yyyy", }; HtmlUnitBrowserCompatCookieSpec(final IncorrectnessListener incorrectnessListener) { Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java 2013-01-29 08:16:42 UTC (rev 8058) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java 2013-01-29 08:17:24 UTC (rev 8059) @@ -275,6 +275,7 @@ responseHeader1.add(new NameValuePair("Set-Cookie", "first=1;expires=Dec-1-94 16:00:00")); responseHeader1.add(new NameValuePair("Set-Cookie", "second=2;expires=Dec-1-1994 16:00:00")); responseHeader1.add(new NameValuePair("Set-Cookie", "third=3;expires=Dec-1-2094 16:00:00")); + responseHeader1.add(new NameValuePair("Set-Cookie", "fourth=4;expires=1/1/2000; path=/")); getMockWebConnection().setResponse(getDefaultUrl(), HTML_ALERT_COOKIE, 200, "OK", "text/html", responseHeader1); loadPageWithAlerts2(getDefaultUrl()); |