From c7ac46fe86038c4aaf3d40209f6d5959c99e17b9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 5 Aug 2008 17:01:49 +0000 Subject: [PATCH] Fix chunked decoding. Props santosj. see #4779 git-svn-id: https://develop.svn.wordpress.org/trunk@8549 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/http.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/http.php b/wp-includes/http.php index 66b2d9f568..8b6b93e7af 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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'];