Fix chunked decoding. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30b6066f07
commit
63f28d3ba0
|
@ -4,6 +4,8 @@
|
|||
*
|
||||
* Will eventually replace and standardize the WordPress HTTP requests made.
|
||||
*
|
||||
* @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage HTTP
|
||||
* @since 2.7
|
||||
|
@ -794,6 +796,7 @@ class WP_Http_ExtHTTP {
|
|||
|
||||
list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
|
||||
$theHeaders = WP_Http::processHeaders($theHeaders);
|
||||
$theBody = http_chunked_decode($theBody);
|
||||
|
||||
$theResponse = array();
|
||||
$theResponse['code'] = $info['response_code'];
|
||||
|
|
Loading…
Reference in New Issue