diff --git a/src/core/wee-url.c b/src/core/wee-url.c index 422c03ccf..7bed1c49f 100644 --- a/src/core/wee-url.c +++ b/src/core/wee-url.c @@ -1070,7 +1070,7 @@ weeurl_download (const char *url, struct t_hashtable *options) /* set default options */ curl_easy_setopt (curl, CURLOPT_URL, url); - curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, "1"); + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); /* set file in/out from options in hashtable */ if (options)