From 5e19e89c80a8c551771dddb24a706edf9a609a39 Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Mon, 23 Jul 2018 05:10:44 +0100 Subject: [PATCH] changed redirection limit --- network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network.c b/network.c index c10b75e..e1030de 100644 --- a/network.c +++ b/network.c @@ -69,7 +69,7 @@ static CURL *Link_to_curl(Link *link) * only 1 redirection is really needed * - for following directories without the '/' */ - curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3); + curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1); curl_easy_setopt(curl, CURLOPT_URL, link->f_url); curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1); curl_easy_setopt(curl, CURLOPT_SHARE, curl_share);