Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
This commit is contained in:
@@ -100,7 +100,7 @@ static bool init(CURL *&conn, char *url)
|
||||
return false;
|
||||
}
|
||||
|
||||
code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1);
|
||||
code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
if (code != CURLE_OK)
|
||||
{
|
||||
fprintf(stderr, "Failed to set redirect option [%s]\n", errorBuffer);
|
||||
|
Reference in New Issue
Block a user