]> err.no Git - mapper/commitdiff
Set max redirection for curl just in case.
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 9 Jan 2008 10:52:32 +0000 (12:52 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 9 Jan 2008 10:52:32 +0000 (12:52 +0200)
src/utils.h

index f7b0cb3e68e47484f2cea35c03fe6b054721324b..8bdc3208a0c70d4fc80f9b375d0e64123519fb85 100644 (file)
     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); \
 }