mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue