Fix notice about body not having chunk formatting. Props santosj. see #4779

git-svn-id: http://svn.automattic.com/wordpress/trunk@8560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-05 22:22:07 +00:00
parent cd722a7472
commit 366bb4f70f
1 changed files with 3 additions and 1 deletions

View File

@ -796,7 +796,9 @@ class WP_Http_ExtHTTP {
list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
$theHeaders = WP_Http::processHeaders($theHeaders);
$theBody = http_chunked_decode($theBody);
if ( !empty($theBody) )
$theBody = http_chunked_decode($theBody);
$theResponse = array();
$theResponse['code'] = $info['response_code'];