summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2019-05-13 13:47:21 +0200
committerNathan Gass2019-05-13 13:47:21 +0200
commit89b34c8bdaf06b10268cab19796cd94684442124 (patch)
tree3733676609095d5249f818046f1795b99a65a453 /it_url.class
parent7758be802e3011f6430ad17912fa2b4ab51ed7a3 (diff)
downloaditools-89b34c8bdaf06b10268cab19796cd94684442124.tar.gz
itools-89b34c8bdaf06b10268cab19796cd94684442124.tar.bz2
itools-89b34c8bdaf06b10268cab19796cd94684442124.zip
add test and fix for 204 http status code
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 59ac212..4135789 100644
--- a/it_url.class
+++ b/it_url.class
@@ -131,7 +131,7 @@ function get($p=null, $timeout=5)
$result = $url->request($p + ['followlocation' => true]);
- if (!$result && $p['retries'] > 0 && $url->result < 400)
+ if (!$result && $p['retries'] > 0 && $url->result < 400 && $url->result != 204)
{
usleep($p['retrysleep']*1000000);
$result = $url->get(array('retries' => $p['retries'] - 1) + $p);