mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
As reported in Mandrake's bug tracker bug 12289
(http://qa.mandrakesoft.com/show_bug.cgi?id=12289), curl would print a newline to "finish" the progress meter after each redirect and not only after a completed transfer.
This commit is contained in:
parent
2459e1e268
commit
ffe17a8197
6
CHANGES
6
CHANGES
@ -6,6 +6,12 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (26 November 2004)
|
||||||
|
- As reported in Mandrake's bug tracker bug 12289
|
||||||
|
(http://qa.mandrakesoft.com/show_bug.cgi?id=12289), curl would print a
|
||||||
|
newline to "finish" the progress meter after each redirect and not only
|
||||||
|
after a completed transfer.
|
||||||
|
|
||||||
Daniel (25 November 2004)
|
Daniel (25 November 2004)
|
||||||
- FTP improvements:
|
- FTP improvements:
|
||||||
|
|
||||||
|
@ -139,10 +139,8 @@ void Curl_pgrsDone(struct connectdata *conn)
|
|||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
data->progress.lastshow=0;
|
data->progress.lastshow=0;
|
||||||
Curl_pgrsUpdate(conn); /* the final (forced) update */
|
Curl_pgrsUpdate(conn); /* the final (forced) update */
|
||||||
if(!(data->progress.flags & PGRS_HIDE) &&
|
|
||||||
!data->progress.callback)
|
data->progress.speeder_c = 0; /* reset the progress meter display */
|
||||||
/* only output if we don't use a progress callback and we're not hidden */
|
|
||||||
fprintf(data->set.err, "\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset all times except redirect */
|
/* reset all times except redirect */
|
||||||
|
@ -1657,6 +1657,11 @@ CURLcode Curl_posttransfer(struct SessionHandle *data)
|
|||||||
(void)data; /* unused parameter */
|
(void)data; /* unused parameter */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(!(data->progress.flags & PGRS_HIDE) &&
|
||||||
|
!data->progress.callback)
|
||||||
|
/* only output if we don't use a progress callback and we're not hidden */
|
||||||
|
fprintf(data->set.err, "\n");
|
||||||
|
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user