mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:53:32 +03:00
lib: remove support for CURL_DOES_CONVERSIONS
TPF was the only user and support for that was dropped. Closes #8378
This commit is contained in:
parent
da15443ddd
commit
2610142139
95 changed files with 198 additions and 1907 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -28,7 +28,6 @@
|
|||
#include "curlx.h"
|
||||
|
||||
#include "tool_cfgable.h"
|
||||
#include "tool_convert.h"
|
||||
#include "tool_msgs.h"
|
||||
#include "tool_binmode.h"
|
||||
#include "tool_getparam.h"
|
||||
|
|
@ -268,25 +267,7 @@ static CURLcode tool2curlparts(CURL *curl, struct tool_mime *m,
|
|||
break;
|
||||
|
||||
case TOOLMIME_DATA:
|
||||
#ifdef CURL_DOES_CONVERSIONS
|
||||
/* Our data is always textual: convert it to ASCII. */
|
||||
{
|
||||
size_t size = strlen(m->data);
|
||||
char *cp = malloc(size + 1);
|
||||
|
||||
if(!cp)
|
||||
ret = CURLE_OUT_OF_MEMORY;
|
||||
else {
|
||||
memcpy(cp, m->data, size + 1);
|
||||
ret = convert_to_network(cp, size);
|
||||
if(!ret)
|
||||
ret = curl_mime_data(part, cp, CURL_ZERO_TERMINATED);
|
||||
free(cp);
|
||||
}
|
||||
}
|
||||
#else
|
||||
ret = curl_mime_data(part, m->data, CURL_ZERO_TERMINATED);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case TOOLMIME_FILE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue