libtest/libprereq.c: set CURLOPT_FOLLOWLOCATION with a long

Previously this used '1', which as an int. The option needs a long.

Closes #16487
This commit is contained in:
Daniel Stenberg 2025-02-25 23:13:49 +01:00
parent 6c81f2a35c
commit 7826927d9b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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);