diff --git a/wp-includes/http.php b/wp-includes/http.php index 8b6b93e7af..1a4b408036 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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'];