aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-09-06 12:12:10 +0200
committerMicael Karlberg <[email protected]>2011-09-06 12:12:10 +0200
commit68911f0221998d471114b6e6aac73d43d3025c8a (patch)
treee3a1dd5bf787fa2b1e53a2415f2d150b2ac406ff /lib/inets/test
parent5bdbfa33f7142b888f833b8f2f80cdf2198d9212 (diff)
downloadotp-68911f0221998d471114b6e6aac73d43d3025c8a.tar.gz
otp-68911f0221998d471114b6e6aac73d43d3025c8a.tar.bz2
otp-68911f0221998d471114b6e6aac73d43d3025c8a.zip
[httpc] Parsing of a cookie expire date should be more forgiving.
That is, if the parsing fails, the date should be ignored. Also added support for (yet another) date format: "Tue Jan 01 08:00:01 2036 GMT" OTP-9433
Diffstat (limited to 'lib/inets/test')
-rw-r--r--lib/inets/test/http_format_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/inets/test/http_format_SUITE.erl b/lib/inets/test/http_format_SUITE.erl
index 931ac6e024..04c7358715 100644
--- a/lib/inets/test/http_format_SUITE.erl
+++ b/lib/inets/test/http_format_SUITE.erl
@@ -584,7 +584,9 @@ convert_netscapecookie_date(Config) when is_list(Config) ->
http_util:convert_netscapecookie_date("Sun, 12-Dec-06 08:59:38 GMT"),
{{2006,12,12},{8,59,38}} =
http_util:convert_netscapecookie_date("Sun 12-Dec-06 08:59:38 GMT"),
- ok.
+ {{2036,1,1},{8,0,1}} =
+ http_util:convert_netscapecookie_date("Tue Jan 01 08:00:01 2036 GMT"),
+ ok.
%%--------------------------------------------------------------------
%%% Internal functions