mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Fixed pre-download verbose output which was broken by HTTP code refactoring.
This commit is contained in:
parent
4e1481d22b
commit
823228830e
@ -1,3 +1,8 @@
|
|||||||
|
2005-12-07 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
|
* http.c: Fixed pre-download verbose output which was broken by
|
||||||
|
HTTP code refactoring.
|
||||||
|
|
||||||
2005-11-23 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2005-11-23 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* http.c: Refactored HTTP code. If -O is not used, the new code
|
* http.c: Refactored HTTP code. If -O is not used, the new code
|
||||||
|
28
src/http.c
28
src/http.c
@ -2157,12 +2157,30 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer,
|
|||||||
if (opt.verbose)
|
if (opt.verbose)
|
||||||
{
|
{
|
||||||
char *hurl = url_string (u, true);
|
char *hurl = url_string (u, true);
|
||||||
char tmp[256];
|
logprintf (LOG_VERBOSE, "--%s-- %s\n",
|
||||||
strcpy (tmp, " ");
|
tms, hurl);
|
||||||
|
|
||||||
if (count > 1)
|
if (count > 1)
|
||||||
sprintf (tmp, _("(try:%2d)"), count);
|
{
|
||||||
logprintf (LOG_VERBOSE, "--%s-- %s\n %s\n",
|
char tmp[256];
|
||||||
tms, hurl, tmp);
|
sprintf (tmp, _("(try:%2d)"), count);
|
||||||
|
logprintf (LOG_VERBOSE, " %s", tmp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
logprintf (LOG_VERBOSE, " ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hstat.local_file)
|
||||||
|
{
|
||||||
|
logprintf (LOG_VERBOSE, " => `%s'\n",
|
||||||
|
HYPHENP (hstat.local_file) ? "STDOUT" : hstat.local_file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
logprintf (LOG_VERBOSE, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
ws_changetitle (hurl);
|
ws_changetitle (hurl);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user