Skip to content

Commit

Permalink
Support CURLOPT_NOPROGRESS for SWOOLE_HOOK_CURL (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Aug 13, 2021
1 parent 05b8161 commit aa1a437
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/Curl/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ final class Handler
/** @var callable */
private $writeFunction;

private $noProgress = true;

/** @var callable */
private $progressFunction;

Expand Down Expand Up @@ -615,6 +617,9 @@ private function setOption(int $opt, $value): bool
case CURLOPT_WRITEFUNCTION:
$this->writeFunction = $value;
break;
case CURLOPT_NOPROGRESS:
$this->noProgress = $value;
break;
case CURLOPT_PROGRESSFUNCTION:
$this->progressFunction = $value;
break;
Expand Down

0 comments on commit aa1a437

Please sign in to comment.