1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 19:45:04 -05:00

examples/mime: minor example code fixes

This commit is contained in:
Viktor Szakats 2017-09-05 10:05:27 +00:00
parent eae21db920
commit 25fc694a41
6 changed files with 11 additions and 11 deletions

View File

@ -72,7 +72,7 @@ CURLE_OK or a CURL error code upon failure.
curl_mime_filedata(part, "image.png"); curl_mime_filedata(part, "image.png");
/* content-type for this part */ /* content-type for this part */
curl_mime_name(part, "image/png"); curl_mime_type(part, "image/png");
/* set name */ /* set name */
curl_mime_name(part, "image", CURL_ZERO_TERMINATED); curl_mime_name(part, "image", CURL_ZERO_TERMINATED);