From 373b83ffe46ac1990c790568d238af02be1cc744 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 9 Jan 2008 12:52:32 +0200 Subject: [PATCH] Set max redirection for curl just in case. --- src/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.h b/src/utils.h index f7b0cb3..8bdc320 100644 --- a/src/utils.h +++ b/src/utils.h @@ -292,10 +292,10 @@ C = curl_easy_init(); \ curl_easy_setopt(C, CURLOPT_NOPROGRESS, 1); \ curl_easy_setopt(C, CURLOPT_FOLLOWLOCATION, 1); \ + curl_easy_setopt(C, CURLOPT_MAXREDIRS, 20); \ curl_easy_setopt(C, CURLOPT_FAILONERROR, 1); \ curl_easy_setopt(C, CURLOPT_USERAGENT, \ - "Mozilla/5.0 (X11; U; Linux i686; en-US; " \ - "rv:1.8.0.4) Gecko/20060701 Firefox/1.5.0.4"); \ + "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060701 Firefox/1.5.0.4"); \ curl_easy_setopt(C, CURLOPT_TIMEOUT, 30); \ curl_easy_setopt(C, CURLOPT_CONNECTTIMEOUT, 10); \ } -- 2.39.5