mirror of
https://github.com/curl/curl.git
synced 2026-06-07 20:54:27 +03:00
drop cast for CURL_HTTP_VERSION_3 in examples (for consistency with rest of code)
This commit is contained in:
parent
e4d90a1b20
commit
707146bc07
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
||||
|
||||
/* Use HTTP/3 but fallback to earlier HTTP if necessary */
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_3);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_3);
|
||||
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue