summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class6
1 files changed, 6 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index e66dfd4..bf1e23f 100644
--- a/it_url.class
+++ b/it_url.class
@@ -238,6 +238,9 @@ function get($p=null, $timeout=5)
$p = array('url' => $p, 'timeout' => $timeout);
$p += array('retries' => 1);
+ if (($filter = EDC('req')) && strstr($p['url'], it::replace('1' => ":", $filter)))
+ ED($p['url']);
+
if ($this instanceof it_url)
{
$url = $this;
@@ -267,6 +270,9 @@ function get($p=null, $timeout=5)
if (!$result && $p['retries'] > 0 && $url->result < 400)
$result = $url->get(array('retries' => $p['retries'] - 1) + $p);
+ if (($filter = EDC('res')) && strstr($p['url'], it::replace('1' => ":", $filter)))
+ ED($result);
+
return $result;
}