summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2022-09-19 16:16:40 +0200
committerNathan Gass2022-09-19 16:16:40 +0200
commitf097dab94ef0708d5e02fe7f715c89d3c05e492b (patch)
tree4338f8739458053cfe717ccab0699fb7780bc73a /it_url.class
parent6d912353c3cda34ee96915b5f3a62de41e14a754 (diff)
downloaditools-f097dab94ef0708d5e02fe7f715c89d3c05e492b.tar.gz
itools-f097dab94ef0708d5e02fe7f715c89d3c05e492b.tar.bz2
itools-f097dab94ef0708d5e02fe7f715c89d3c05e492b.zip
maximum of 20 redirects (same as chrome browser)
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index d718201..6058346 100644
--- a/it_url.class
+++ b/it_url.class
@@ -261,6 +261,7 @@ static function curl_opts($p=array())
CURLOPT_LOW_SPEED_LIMIT => 5,
CURLOPT_LOW_SPEED_TIME => $p['timeout'],
CURLOPT_FOLLOWLOCATION => $p['followlocation'],
+ CURLOPT_MAXREDIRS => 20,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_CUSTOMREQUEST => $p['method'] ?: null,
CURLOPT_NOBODY => $p['method'] == 'HEAD',