From 40cc2656a5c1df52dc70e93c14b38d64e9422c0c Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Wed, 8 Dec 2021 14:36:19 +0100 Subject: show all params in EDC('req'), not just url --- it_url.class | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/it_url.class b/it_url.class index 6c4680a..4c8a80d 100644 --- a/it_url.class +++ b/it_url.class @@ -130,7 +130,10 @@ function _get($p = [], $timeout = null) $p += array('retries' => 1); if (($filter = EDC('req')) && ($filter == 1 || strstr($p['url'], "/$filter."))) - ED($p['url'] ?: $this->url); + if ($p['url']) + ED($p); + else + ED($this->url, $p); if ($p['url']) $this->__construct($p['url']); @@ -365,7 +368,7 @@ static function get_multi($p=null) { $p += array('retries' => 1); - EDC('req', $p['urls']); + EDC('req', $p); $url = new it_url; $p['headers'] = (array)$p['headers'] + array_diff_key(self::_default_headers($url, $p), ['Host' => null]); -- cgit v1.2.3