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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-07-21 21:44:35 +00:00
parent 6185986c0e
commit 28b241df2b
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 );