aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/htmltitle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/htmltitle.cc')
-rw-r--r--docs/examples/htmltitle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/htmltitle.cc b/docs/examples/htmltitle.cc
index 62a4363d5..de7ff0339 100644
--- a/docs/examples/htmltitle.cc
+++ b/docs/examples/htmltitle.cc
@@ -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);