From 89b34c8bdaf06b10268cab19796cd94684442124 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Mon, 13 May 2019 13:47:21 +0200 Subject: add test and fix for 204 http status code --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') 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); -- cgit v1.2.3