mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix notice about body not having chunk formatting. Props santosj. see #4779
git-svn-id: https://develop.svn.wordpress.org/trunk@8560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user