Now HTTP uploads are not a mess to stdout

master
qorg11 2022-07-08 20:53:45 +02:00
parent bfcc3b9d94
commit 1f60c083b5
1 changed files with 4 additions and 4 deletions

View File

@ -228,9 +228,11 @@ main(int argc, char **argv)
curl_easy_setopt(easy_handle, CURLOPT_MIMEPOST, mime);
curl_easy_perform(easy_handle);
if(!silent_flag)
putchar('\n');
puts(buffer);
if(protocol == CURLPROTO_HTTP)
curl_mime_free(mime);
curl_mime_free(mime);
}
/* Process SCP uploads */
else if(protocol == CURLPROTO_SCP) {
@ -253,8 +255,6 @@ main(int argc, char **argv)
return -1;
}
if(!silent_flag)
putchar('\n');
curl_easy_cleanup(easy_handle);
free(buffer);