drop cast for CURLAUTH_ANY 3 docs (sync with other doc, rest of code)

This commit is contained in:
Viktor Szakats 2025-07-01 14:58:59 +02:00
parent b7c2eb8bf6
commit 7c3b4ecaad
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -137,7 +137,7 @@ int main(void)
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* allow whatever auth the server speaks */
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_USERPWD, "james:bond");
ret = curl_easy_perform(curl);
}