mirror of
https://github.com/curl/curl.git
synced 2026-06-08 17:54:15 +03:00
CURLOPT_MIME_OPTIONS.md add history, drop cast
This commit is contained in:
parent
a8978623a6
commit
db28a94097
1 changed files with 6 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ int main(void)
|
|||
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
||||
curl_easy_setopt(curl, CURLOPT_MIME_OPTIONS, (long)CURLMIMEOPT_FORMESCAPE);
|
||||
curl_easy_setopt(curl, CURLOPT_MIME_OPTIONS, CURLMIMEOPT_FORMESCAPE);
|
||||
|
||||
form = curl_mime_init(curl);
|
||||
if(form) {
|
||||
|
|
@ -91,6 +91,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
**CURLMIMEOPT_FORMESCAPE** macro became `long` type in 8.16.0, prior to this
|
||||
version a `long` cast was necessary when passed to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue