From 7826927d9b3e05e5a2da18ae0b79e58392028947 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Feb 2025 23:13:49 +0100 Subject: [PATCH] libtest/libprereq.c: set CURLOPT_FOLLOWLOCATION with a long Previously this used '1', which as an int. The option needs a long. Closes #16487 --- tests/libtest/libprereq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);