CURLOPT_MIME_OPTIONS.md add history, drop cast

This commit is contained in:
Viktor Szakats 2025-08-01 17:25:27 +02:00
parent a8978623a6
commit db28a94097
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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