Make WordPress Core

Ticket #4779: 4779.r8548.diff

File 4779.r8548.diff, 650 bytes (added by santosj, 16 years ago)

Fixes chunk format based off of r8548

  • http.php

     
    44 *
    55 * Will eventually replace and standardize the WordPress HTTP requests made.
    66 *
     7 * @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal
     8 *
    79 * @package WordPress
    810 * @subpackage HTTP
    911 * @since 2.7
     
    794796
    795797                list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
    796798                $theHeaders = WP_Http::processHeaders($theHeaders);
     799                $theBody = http_chunked_decode($theBody);
    797800
    798801                $theResponse = array();
    799802                $theResponse['code'] = $info['response_code'];