drop cast for CURL_HTTP_VERSION_3 in examples (for consistency with rest of code)

This commit is contained in:
Viktor Szakats 2025-07-01 14:47:11 +02:00
parent e4d90a1b20
commit 707146bc07
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

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