Skip to content
Snippets Groups Projects
Commit 22eb00f9 authored by Dimitrios Siganos's avatar Dimitrios Siganos Committed by Daniel Stenberg
Browse files

example: use correct type (long) for CURLOPT_FOLLOWLOCATION

parent afbd5f97
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_perform(curl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment