Now HTTP uploads are not a mess to stdout
This commit is contained in:
parent
bfcc3b9d94
commit
1f60c083b5
1 changed files with 4 additions and 4 deletions
|
@ -228,9 +228,11 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
curl_easy_setopt(easy_handle, CURLOPT_MIMEPOST, mime);
|
curl_easy_setopt(easy_handle, CURLOPT_MIMEPOST, mime);
|
||||||
curl_easy_perform(easy_handle);
|
curl_easy_perform(easy_handle);
|
||||||
|
if(!silent_flag)
|
||||||
|
putchar('\n');
|
||||||
puts(buffer);
|
puts(buffer);
|
||||||
if(protocol == CURLPROTO_HTTP)
|
curl_mime_free(mime);
|
||||||
curl_mime_free(mime);
|
|
||||||
}
|
}
|
||||||
/* Process SCP uploads */
|
/* Process SCP uploads */
|
||||||
else if(protocol == CURLPROTO_SCP) {
|
else if(protocol == CURLPROTO_SCP) {
|
||||||
|
@ -253,8 +255,6 @@ main(int argc, char **argv)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!silent_flag)
|
|
||||||
putchar('\n');
|
|
||||||
curl_easy_cleanup(easy_handle);
|
curl_easy_cleanup(easy_handle);
|
||||||
|
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue