drop cast for CURL_HTTP_VERSION_2TLS

This commit is contained in:
Viktor Szakats 2025-07-01 15:58:35 +02:00
parent 523ed3a633
commit 45752fd455
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -73,8 +73,7 @@ static CURLcode test_lib1662(char *URL)
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/2000");
curl_easy_setopt(hnd, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION,
(long)CURL_HTTP_VERSION_2TLS);
curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);
curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);