diff options
author | Urban Müller | 2020-07-27 17:14:37 +0200 |
---|---|---|
committer | Urban Müller | 2020-07-27 17:14:37 +0200 |
commit | 5718a4598d4af2262aa06b709c32c46e32ca4113 (patch) | |
tree | 27a12cbfc620280bd8d757bd13b097b959049e53 /it_url.class | |
parent | ba63582f143a5eae9709119bb8cafb365643b36f (diff) | |
download | itools-5718a4598d4af2262aa06b709c32c46e32ca4113.tar.gz itools-5718a4598d4af2262aa06b709c32c46e32ca4113.tar.bz2 itools-5718a4598d4af2262aa06b709c32c46e32ca4113.zip |
debugparams req and res should work in get_multi
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index 6fcc941..f9cafc7 100644 --- a/it_url.class +++ b/it_url.class @@ -344,6 +344,8 @@ static function get_multi($p=null) { $p += array('retries' => 1); + EDC('req', $p['urls']); + $url = new it_url; $p['headers'] = (array)$p['headers'] + array_diff_key(self::_default_headers($url, $p), ['Host' => null]); @@ -450,7 +452,10 @@ static function get_multi($p=null) $closehandle($key); curl_multi_close($mh); - return $p['noresults'] ? null : it::filter_keys($results_unordered, $keyorder, ['reorder' => true]); + $result = $p['noresults'] ? null : it::filter_keys($results_unordered, $keyorder, ['reorder' => true]); + EDC('res', $result); + + return $result; } /** |