mirror of
https://github.com/curl/curl.git
synced 2026-06-08 13:24:17 +03:00
CURLOPT_HEADEROPT.md drop cast, add note to history
This commit is contained in:
parent
7c20857793
commit
bee5b178bc
1 changed files with 6 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ int main(void)
|
|||
/* HTTPS over a proxy makes a separate CONNECT to the proxy, so tell
|
||||
libcurl to not send the custom headers to the proxy. Keep them
|
||||
separate. */
|
||||
curl_easy_setopt(curl, CURLOPT_HEADEROPT, (long)CURLHEADER_SEPARATE);
|
||||
curl_easy_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE);
|
||||
ret = curl_easy_perform(curl);
|
||||
curl_slist_free_all(list);
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
@ -73,6 +73,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
CURLHEADER_\* macros became `long` types in 8.16.0, prior to this version
|
||||
a `long` cast is necessary when passing to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue