mirror of
https://github.com/curl/curl.git
synced 2026-06-08 16:04:20 +03:00
CURLOPT_ALTSVC.md drop cast, add note to history
This commit is contained in:
parent
55f236a89f
commit
80fb94b35d
1 changed files with 6 additions and 1 deletions
|
|
@ -60,13 +60,18 @@ int main(void)
|
|||
{
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, (long)CURLALTSVC_H1);
|
||||
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, CURLALTSVC_H1);
|
||||
curl_easy_setopt(curl, CURLOPT_ALTSVC, "altsvc-cache.txt");
|
||||
curl_easy_perform(curl);
|
||||
}
|
||||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
CURLALTSVC_\* macros became `long` types in 8.16.0, prior to this version
|
||||
a `long` cast is necessary when passing to curl_easy_setopt(3).
|
||||
|
||||
# FILE FORMAT
|
||||
|
||||
A text based file with one line per alt-svc entry and each line consists of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue