- add cookies patch
This commit is contained in:
parent
fa626ef118
commit
d1cd5e67c9
26
wget-1.10.2-cookies,patch
Normal file
26
wget-1.10.2-cookies,patch
Normal file
@ -0,0 +1,26 @@
|
||||
--- wget-1.10.2/src/cookies.c.cookies 2007-02-12 06:02:04.000000000 -0500
|
||||
+++ wget-1.10.2/src/cookies.c 2007-02-12 06:04:06.000000000 -0500
|
||||
@@ -398,18 +398,17 @@
|
||||
{
|
||||
cookie->permanent = 1;
|
||||
cookie->expiry_time = expires;
|
||||
+ /* According to netscape's specification, expiry time in
|
||||
+ the past means that discarding of a matching cookie
|
||||
+ is requested. */
|
||||
+ if (cookie->expiry_time < cookies_now)
|
||||
+ cookie->discard_requested = 1;
|
||||
}
|
||||
else
|
||||
/* Error in expiration spec. Assume default (cookie doesn't
|
||||
expire, but valid only for this session.) */
|
||||
;
|
||||
|
||||
- /* According to netscape's specification, expiry time in the
|
||||
- past means that discarding of a matching cookie is
|
||||
- requested. */
|
||||
- if (cookie->expiry_time < cookies_now)
|
||||
- cookie->discard_requested = 1;
|
||||
-
|
||||
return 1;
|
||||
}
|
||||
else if (NAME_IS ("max-age"))
|
Loading…
Reference in New Issue
Block a user