0 | |
Description: postpone expiry dates in test suites to 2041
|
1 | |
Author: David Golden
|
2 | |
Origin: upstream, https://github.com/dagolden/HTTP-CookieJar/commit/7a3b9b163526784bf18a69172df736d190c15940
|
3 | |
Bug: https://github.com/dagolden/HTTP-CookieJar/issues/11
|
4 | |
Bug-Debian: https://bugs.debian.org/991649
|
5 | |
Applied-Upstream: 0.011
|
6 | |
Reviewed-by: Étienne Mollier <emollier@debian.org>
|
7 | |
Last-Update: 2021-07-29
|
8 | |
---
|
9 | |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
10 | |
--- libhttp-cookiejar-perl.orig/t/examples.t
|
11 | |
+++ libhttp-cookiejar-perl/t/examples.t
|
12 | |
@@ -38,7 +38,7 @@
|
13 | |
|
14 | |
subtest "expiration" => sub {
|
15 | |
$jar->clear;
|
16 | |
- $jar->add( $req, "lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT" );
|
17 | |
+ $jar->add( $req, "lang=en-US; Expires=Sun, 09 Jun 2041 10:18:14 GMT" );
|
18 | |
is( $jar->cookie_header($req), "lang=en-US" );
|
19 | |
$jar->add( $req, "lang=; Expires=Sun, 06 Nov 1994 08:49:37 GMT" );
|
20 | |
is( $jar->cookie_header($req), "" );
|
21 | |
--- libhttp-cookiejar-perl.orig/t/parse.t
|
22 | |
+++ libhttp-cookiejar-perl/t/parse.t
|
23 | |
@@ -83,19 +83,19 @@
|
24 | |
}
|
25 | |
},
|
26 | |
{
|
27 | |
- cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT",
|
28 | |
+ cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT",
|
29 | |
parse => {
|
30 | |
name => "lang",
|
31 | |
value => "en-US",
|
32 | |
- expires => 1623233894,
|
33 | |
+ expires => 2254385894,
|
34 | |
}
|
35 | |
},
|
36 | |
{
|
37 | |
- cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT; Max-Age=3600",
|
38 | |
+ cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT; Max-Age=3600",
|
39 | |
parse => {
|
40 | |
name => "lang",
|
41 | |
value => "en-US",
|
42 | |
- expires => 1623233894,
|
43 | |
+ expires => 2254385894,
|
44 | |
'max-age' => 3600,
|
45 | |
}
|
46 | |
},
|