From 05d8c399bd539a3790fdd0e41061e07c0ad860de Mon Sep 17 00:00:00 2001 From: Spuds Date: Wed, 9 Jul 2014 09:38:46 -0400 Subject: [PATCH] ! make the returned size available in the class, useful for addons Signed-off-by: Spuds --- sources/CurlFetchWebdata.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/CurlFetchWebdata.class.php b/sources/CurlFetchWebdata.class.php index a998864b3e..128aa742fd 100644 --- a/sources/CurlFetchWebdata.class.php +++ b/sources/CurlFetchWebdata.class.php @@ -186,6 +186,7 @@ private function _curlRequest($url, $redirect = false) 'url' => $url, 'code' => $http_code, 'error' => $error, + 'size' => !empty($curl_info['download_content_length']) ? $curl_info['download_content_length'] : 0, 'headers' => !empty($this->_headers) ? $this->_headers : false, 'body' => $body, );