From 21e12e0b65c1a7a136c686523037991061cc35a2 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 24 Apr 2024 09:37:07 +0200 Subject: Disable reporting of empty_on_fail infos --- it_url.class | 6 +++--- 1 file 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; -- cgit v1.2.3