From: Daniel Stenberg Date: Tue, 25 Feb 2025 22:13:49 +0000 (+0100) Subject: libtest/libprereq.c: set CURLOPT_FOLLOWLOCATION with a long X-Git-Tag: curl-8_13_0~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7826927d9b3e05e5a2da18ae0b79e58392028947;p=thirdparty%2Fcurl.git libtest/libprereq.c: set CURLOPT_FOLLOWLOCATION with a long Previously this used '1', which as an int. The option needs a long. Closes #16487 --- diff --git a/tests/libtest/libprereq.c b/tests/libtest/libprereq.c index 3eef5f3690..182f4f7949 100644 --- a/tests/libtest/libprereq.c +++ b/tests/libtest/libprereq.c @@ -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);