X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FParseUrl.php;h=9e21736a8465883f14961f6f17a52c5681117b5e;hb=ae8098eaf24155d3ad8f6f5747abf3bad94d7749;hp=e8b58806d987aa5d611f2aa78bbfd00efe0ded1e;hpb=8f253f6c1288534c50fac34f05afb1a2c07c9335;p=friendica.git diff --git a/src/ParseUrl.php b/src/ParseUrl.php index e8b58806d9..9e21736a84 100644 --- a/src/ParseUrl.php +++ b/src/ParseUrl.php @@ -155,6 +155,12 @@ class ParseUrl { @curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); } + $range = intval(Config::get('system', 'curl_range_bytes', 0)); + + if ($range > 0) { + curl_setopt($ch, CURLOPT_RANGE, '0-' . $range); + } + $header = curl_exec($ch); $curl_info = @curl_getinfo($ch); curl_close($ch);