unset download filename after download

This commit is contained in:
Brad Cimbura
2024-02-07 13:32:05 -06:00
parent e737706438
commit e56c2915ba

View File

@@ -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);