don't do final newline output when using progress callback
This commit is contained in:
		| @@ -97,6 +97,8 @@ void Curl_pgrsDone(struct connectdata *conn) | |||||||
|   if(!(data->progress.flags & PGRS_HIDE)) { |   if(!(data->progress.flags & PGRS_HIDE)) { | ||||||
|     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.callback) | ||||||
|  |       /* only output if we don't use progress callback */ | ||||||
|       fprintf(data->err, "\n"); |       fprintf(data->err, "\n"); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Stenberg
					Daniel Stenberg