Permalink
Browse files

Merge faa4d04 into 25ee8f6

  • Loading branch information...
kwuerl committed Feb 9, 2016
2 parents 25ee8f6 + faa4d04 commit bf1e768d154a1fef9f518454e076c90143623fb9
Showing with 5 additions and 0 deletions.
  1. +5 −0 library/Requests/Transport/cURL.php
@@ -176,6 +176,11 @@ public function request($url, $headers = array(), $data = array(), $options = ar
$this->process_response($response, $options);
// Need to remove the $this reference from the curl handle.
// Otherwise Requests_Transport_cURL wont be garbage collected and the curl_close() will never be called.
curl_setopt($this->handle, CURLOPT_HEADERFUNCTION, null);
curl_setopt($this->handle, CURLOPT_WRITEFUNCTION, null);
return $this->headers;
}

0 comments on commit bf1e768

Please sign in to comment.