mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
lib: sanitize conditional exclusion around MIME
The introduction of CURL_DISABLE_MIME came with some additional bugs: - Disabled MIME is compiled-in anyway if SMTP and/or IMAP is enabled. - CURLOPT_MIMEPOST, CURLOPT_MIME_OPTIONS and CURLOPT_HTTPHEADER are conditioned on HTTP, although also needed for SMTP and IMAP MIME mail uploads. In addition, the CURLOPT_HTTPHEADER and --header documentation does not mention their use for MIME mail. This commit fixes the problems above. Closes #9610
This commit is contained in:
parent
75670e4573
commit
2437fac013
7 changed files with 101 additions and 55 deletions
|
|
@ -251,7 +251,7 @@ const struct helptxt helptext[] = {
|
|||
CURLHELP_HTTP | CURLHELP_FTP | CURLHELP_FILE},
|
||||
{"-H, --header <header/@file>",
|
||||
"Pass custom header(s) to server",
|
||||
CURLHELP_HTTP},
|
||||
CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP},
|
||||
{"-h, --help <category>",
|
||||
"Get help for commands",
|
||||
CURLHELP_IMPORTANT | CURLHELP_CURL},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue