Empty headers instance var instead of unsetting to avoid warning. Props chrisbliss18. fixes #18157

git-svn-id: https://develop.svn.wordpress.org/trunk@18457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-07-21 21:44:35 +00:00
parent ac3ab55d1e
commit 90ec88ca6e
1 changed files with 1 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ class WP_Http_Curl {
return new WP_Error('http_request_failed', __('Too many redirects.'));
}
unset( $this->headers );
$this->headers = '';
$response = array();
$response['code'] = curl_getinfo( $handle, CURLINFO_HTTP_CODE );