From 5718a4598d4af2262aa06b709c32c46e32ca4113 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 27 Jul 2020 17:14:37 +0200 Subject: debugparams req and res should work in get_multi --- it_url.class | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'it_url.class') 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; } /** -- cgit v1.2.3