summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-13 11:34:51 -0500
committerjim-p <jimp@pfsense.org>2011-02-13 11:37:48 -0500
commit4c37209a3b0b727b8bd94e037e5171fb7c0fc099 (patch)
tree248fcb230fd0a2bca498aeab4e2d11c307aa9f22 /etc
parentca640261f33d5489d44a8bbc37d875d9986cf34f (diff)
downloadpfsense-4c37209a3b0b727b8bd94e037e5171fb7c0fc099.zip
pfsense-4c37209a3b0b727b8bd94e037e5171fb7c0fc099.tar.gz
Suppress curl errors (if we get a 404 it tosses its own error if there is no response body, just a 404 code.)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 699e603..08ec7d5 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1452,7 +1452,7 @@ function download_file_with_progress_bar($url_file, $destination_file, $readbody
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
- curl_exec($ch);
+ @curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($fout)
fclose($fout);
OpenPOWER on IntegriCloud