1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Apply patch to fix always reporting local size of zero.

This commit is contained in:
Micah Cowan 2007-09-24 22:17:31 -07:00
parent d2741e7155
commit f08922082f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-09-24 Jochen Roderburg <roderburg@uni-koeln.de>
* http.c (http_zero): Remove no-longer-used local_size variable.
Fixes bug #21057.
2007-08-29 Micah Cowan <micah@cowan.name> 2007-08-29 Micah Cowan <micah@cowan.name>
* openssl.c (ssl_init): Re un-const-ified the meth local * openssl.c (ssl_init): Re un-const-ified the meth local

View File

@ -2311,7 +2311,6 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer,
const char *tmrate; const char *tmrate;
uerr_t err, ret = TRYLIMEXC; uerr_t err, ret = TRYLIMEXC;
time_t tmr = -1; /* remote time-stamp */ time_t tmr = -1; /* remote time-stamp */
wgint local_size = 0; /* the size of the local file */
struct http_stat hstat; /* HTTP status */ struct http_stat hstat; /* HTTP status */
struct_stat st; struct_stat st;
bool send_head_first = true; bool send_head_first = true;
@ -2589,7 +2588,7 @@ Server file no newer than local file `%s' -- not retrieving.\n\n"),
{ {
logprintf (LOG_VERBOSE, _("\ logprintf (LOG_VERBOSE, _("\
The sizes do not match (local %s) -- retrieving.\n"), The sizes do not match (local %s) -- retrieving.\n"),
number_to_static_string (local_size)); number_to_static_string (hstat.orig_file_size));
} }
} }
else else