forked from leftypol/leftypol
HttpDriver.php: fix download max size logic
This commit is contained in:
parent
a5770a2de5
commit
9f9fba63d9
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class HttpDriver {
|
|||
$opt = (\PHP_MAJOR_VERSION >= 8 && \PHP_MINOR_VERSION >= 2) ? \CURLOPT_XFERINFOFUNCTION : \CURLOPT_PROGRESSFUNCTION;
|
||||
\curl_setopt_array($this->inner, [
|
||||
\CURLOPT_NOPROGRESS => false,
|
||||
$opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl <= $this->max_file_size),
|
||||
$opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl > $this->max_file_size),
|
||||
\CURLOPT_FAILONERROR => true,
|
||||
\CURLOPT_FOLLOWLOCATION => false,
|
||||
\CURLOPT_FILE => $fd,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue