[wget-notify] COMMIT: r2332 - in /branches/bugs/b20322: ChangeLog
NEWS src/ChangeLog src/http.c
micah at cowan.name
micah at cowan.name
Thu Aug 9 01:01:55 PDT 2007
Author: micah
Date: Thu Aug 9 01:01:52 2007
New Revision: 2332
Log:
Re-parse timestamp from last header response.
Modified:
branches/bugs/b20322/ChangeLog
branches/bugs/b20322/NEWS
branches/bugs/b20322/src/ChangeLog
branches/bugs/b20322/src/http.c
Modified: branches/bugs/b20322/ChangeLog
==============================================================================
--- branches/bugs/b20322/ChangeLog (original)
+++ branches/bugs/b20322/ChangeLog Thu Aug 9 01:01:52 2007
@@ -1,3 +1,7 @@
+2007-08-09 Micah Cowan <micah at cowan.name>
+
+ * NEWS: Timestamping from most recent response.
+
2007-08-08 Micah Cowan <micah at cowan.name>
* NEWS: Call attention to the fact that Content-Disposition is
Modified: branches/bugs/b20322/NEWS
==============================================================================
--- branches/bugs/b20322/NEWS (original)
+++ branches/bugs/b20322/NEWS Thu Aug 9 01:01:52 2007
@@ -6,6 +6,9 @@
Please send GNU Wget bug reports to <bug-wget at gnu.org>.
* Changes in Wget 1.11.
+
+** Timestamping now uses the value from the most recent HTTP response,
+rather than the first one it got.
** configure.in now requires autoconf >= 2.61, rather than 2.59.
Modified: branches/bugs/b20322/src/ChangeLog
==============================================================================
--- branches/bugs/b20322/src/ChangeLog (original)
+++ branches/bugs/b20322/src/ChangeLog Thu Aug 9 01:01:52 2007
@@ -1,3 +1,9 @@
+2007-08-09 Micah Cowan <micah at cowan.name>
+
+ * http.c (http_loop): If we got a HEAD and then a GET, and the
+ GET had a timestamp, use that one, not any we may have gotten
+ from the HEAD.
+
2007-08-08 Micah Cowan <micah at cowan.name>
* init.c (defaults): Content disposition will not be default,
Modified: branches/bugs/b20322/src/http.c
==============================================================================
--- branches/bugs/b20322/src/http.c (original)
+++ branches/bugs/b20322/src/http.c Thu Aug 9 01:01:52 2007
@@ -2637,7 +2637,17 @@
else
fl = hstat.local_file;
if (fl)
- touch (fl, tmr);
+ {
+ time_t newtmr = -1;
+ /* Reparse time header, in case it's changed. */
+ if (hstat.remote_time && hstat.remote_time[0])
+ {
+ newtmr = http_atotm (hstat.remote_time);
+ if (newtmr != -1)
+ tmr = newtmr;
+ }
+ touch (fl, tmr);
+ }
}
/* End of time-stamping section. */
More information about the wget-notify
mailing list