summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2024-04-24 09:37:07 +0200
committerChristian Schneider2024-04-24 09:37:07 +0200
commit21e12e0b65c1a7a136c686523037991061cc35a2 (patch)
treed5324638358173bb5281d611256edd3b7ff34412
parent5dcd977b01e94103e0e6aa04fbeff6bca720c981 (diff)
downloaditools-21e12e0b65c1a7a136c686523037991061cc35a2.tar.gz
itools-21e12e0b65c1a7a136c686523037991061cc35a2.tar.bz2
itools-21e12e0b65c1a7a136c686523037991061cc35a2.zip
Disable reporting of empty_on_fail infos
-rw-r--r--it_url.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_url.class b/it_url.class
index cd23360..637990c 100644
--- a/it_url.class
+++ b/it_url.class
@@ -352,9 +352,9 @@ function request($p=array())
}
else
{
- # Send a notice in cases where changing the default to empty_on_fail=true would change result for text results
- if ($url->result >= 400 && $url->data && !isset($p['empty_on_fail']) && it::match('^text/', $url->headers['Content-Type']))
- it::error(['to' => 'schneider@search.ch', 'title' => 'Failing it_url::get() without empty_on_fail but non-empty data', 'body' => ['p' => $p, 'url' => $url]]);
+ # FIXME 2024-06 CS Send a notice in cases where changing the default to empty_on_fail=true would change result for text results
+ #if ($url->result >= 400 && $url->data && !isset($p['empty_on_fail']) && it::match('^text/', $url->headers['Content-Type']))
+ # it::error(['to' => 'schneider@search.ch', 'title' => 'Failing it_url::get() without empty_on_fail but non-empty data', 'body' => ['p' => $p, 'url' => $url]]);
if ($url->result >= 400 && ($p['empty_on_fail'] || $p['keepfailed']))
$got = $url->data = false;