diff options
Diffstat (limited to 'src/tool_setopt.c')
-rw-r--r-- | src/tool_setopt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c index b0f319814..635304a8f 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -506,6 +506,14 @@ static CURLcode libcurl_generate_mime(curl_mime *mime, int *mimeno) break; } + if(part->encoder) { + Curl_safefree(escaped); + escaped = c_escape(part->encoder->name, CURL_ZERO_TERMINATED); + if(!escaped) + return CURLE_OUT_OF_MEMORY; + CODE2("curl_mime_encoder(part%d, \"%s\");", *mimeno, escaped); + } + if(filename) { Curl_safefree(escaped); escaped = c_escape(filename, CURL_ZERO_TERMINATED); |