diff options
author | Christian Schneider | 2024-04-24 09:37:07 +0200 |
---|---|---|
committer | Christian Schneider | 2024-04-24 09:37:07 +0200 |
commit | 21e12e0b65c1a7a136c686523037991061cc35a2 (patch) | |
tree | d5324638358173bb5281d611256edd3b7ff34412 | |
parent | 5dcd977b01e94103e0e6aa04fbeff6bca720c981 (diff) | |
download | itools-21e12e0b65c1a7a136c686523037991061cc35a2.tar.gz itools-21e12e0b65c1a7a136c686523037991061cc35a2.tar.bz2 itools-21e12e0b65c1a7a136c686523037991061cc35a2.zip |
Disable reporting of empty_on_fail infos
-rw-r--r-- | it_url.class | 6 |
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; |