mirror of
https://github.com/curl/curl.git
synced 2026-07-30 16:48:03 +03:00
mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
This feature is badly supported in Windows: as a replacement, a caller has to use curl_mime_data_cb() with fread, fseek and possibly fclose callbacks to process opened files. The cli tool and documentation are updated accordingly. The feature is however kept internally for form API compatibility, with the known caveats it always had. As a side effect, stdin size is not determined by the cli tool even if possible and this results in a chunked transfer encoding. Test 173 is updated accordingly.
This commit is contained in:
parent
045b076ae8
commit
1a3f4c1991
7 changed files with 48 additions and 14 deletions
|
|
@ -153,6 +153,9 @@ int main(void)
|
|||
* clean up in the end.
|
||||
*/
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
/* Free multipart message. */
|
||||
curl_mime_free(mime);
|
||||
}
|
||||
|
||||
return (int)res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue