From e56c2915baf82e08a81607fa824e86303fc8d597 Mon Sep 17 00:00:00 2001 From: Brad Cimbura <421012+hpz937@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:32:05 -0600 Subject: [PATCH] unset download filename after download --- src/RestClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RestClient.php b/src/RestClient.php index fa32ec3..75a5e19 100644 --- a/src/RestClient.php +++ b/src/RestClient.php @@ -224,6 +224,7 @@ class RestClient { // Set option to write response to a file $fileHandle = fopen($this->downloadFilename, 'w'); curl_setopt($ch, CURLOPT_FILE, $fileHandle); + $this->downloadFilename = null; } $response = curl_exec($ch);