diff --git a/src/CopyRequest.php b/src/CopyRequest.php index b598b7d..e6aac74 100644 --- a/src/CopyRequest.php +++ b/src/CopyRequest.php @@ -17,7 +17,7 @@ class CopyRequest extends BaseRequest /** @var resource> */ private $fp; - private $success = false; + private $success = true; protected static $defaultCurlOptions = array( CURLOPT_HTTPGET => true, @@ -72,6 +72,7 @@ public function getCurlOptions() if ($this->fp) { fclose($this->fp); } + $this->success = false; $this->fp = fopen($this->destination, 'wb'); if (!$this->fp) { throw new FetchException(