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:
parent
6c81f2a35c
commit
7826927d9b
@ -80,7 +80,7 @@ CURLcode test(char *URL)
|
|||||||
|
|
||||||
if(strstr(URL, "#redir")) {
|
if(strstr(URL, "#redir")) {
|
||||||
/* Enable follow-location */
|
/* Enable follow-location */
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = curl_easy_perform(curl);
|
ret = curl_easy_perform(curl);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user