Reset response variables to match initial values

This commit is contained in:
Zach Borboa
2018-06-09 01:45:46 -07:00
parent 703d0acfa0
commit 648ac2c21b
+2 -2
View File
@@ -351,8 +351,8 @@ class Curl
// Transfer the header callback data and release the temporary store to avoid memory leak.
$this->rawResponseHeaders = $this->headerCallbackData->rawResponseHeaders;
$this->responseCookies = $this->headerCallbackData->responseCookies;
$this->headerCallbackData->rawResponseHeaders = null;
$this->headerCallbackData->responseCookies = null;
$this->headerCallbackData->rawResponseHeaders = '';
$this->headerCallbackData->responseCookies = array();
// Include additional error code information in error message when possible.
if ($this->curlError && function_exists('curl_strerror')) {