diff options
author | Christian A. Weber | 2021-12-08 14:36:19 +0100 |
---|---|---|
committer | Christian A. Weber | 2021-12-08 14:36:19 +0100 |
commit | 40cc2656a5c1df52dc70e93c14b38d64e9422c0c (patch) | |
tree | d18c23e13b603e758b754f622788eeff26cd822d /it_url.class | |
parent | 7c61258ec289cec41b5b153b4baf4b8c44a5e8ec (diff) | |
download | itools-40cc2656a5c1df52dc70e93c14b38d64e9422c0c.tar.gz itools-40cc2656a5c1df52dc70e93c14b38d64e9422c0c.tar.bz2 itools-40cc2656a5c1df52dc70e93c14b38d64e9422c0c.zip |
show all params in EDC('req'), not just url
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 7 |
1 files 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]); |