]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libtest/libprereq.c: set CURLOPT_FOLLOWLOCATION with a long
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Feb 2025 22:13:49 +0000 (23:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Feb 2025 23:06:24 +0000 (00:06 +0100)
Previously this used '1', which as an int. The option needs a long.

Closes #16487

tests/libtest/libprereq.c

index 3eef5f369084f09dbfefa3d3dc421615b59e45b7..182f4f79494b586c6c3cb266cf5db5beca96c40d 100644 (file)
@@ -80,7 +80,7 @@ CURLcode test(char *URL)
 
     if(strstr(URL, "#redir")) {
       /* Enable follow-location */
-      curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+      curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
     }
 
     ret = curl_easy_perform(curl);