CURLOPT_ALTSVC.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:18:02 +02:00
parent 55f236a89f
commit 80fb94b35d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

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