diff options
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]); |