mirror of
https://github.com/curl/curl.git
synced 2026-06-07 16:34:16 +03:00
drop cast for CURL_HTTP_VERSION_2TLS in docs
This commit is contained in:
parent
f0e1b264a8
commit
c4480abd0d
1 changed files with 1 additions and 2 deletions
|
|
@ -105,8 +105,7 @@ int main(void)
|
|||
if(curl) {
|
||||
CURLcode ret;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION,
|
||||
(long)CURL_HTTP_VERSION_2TLS);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
|
||||
ret = curl_easy_perform(curl);
|
||||
if(ret == CURLE_HTTP_RETURNED_ERROR) {
|
||||
/* an HTTP response error problem */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue