WordPress.org

Make WordPress Core

Ticket #4779: 4779.r8557.diff

File 4779.r8557.diff, 571 bytes (added by santosj, 10 years ago)

Fix notice about body not having chunk formatting.

  • http.php

     
    796796
    797797                list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
    798798                $theHeaders = WP_Http::processHeaders($theHeaders);
    799                 $theBody = http_chunked_decode($theBody);
    800799
     800                if ( !empty($theBody) )
     801                        $theBody = http_chunked_decode($theBody);
     802
    801803                $theResponse = array();
    802804                $theResponse['code'] = $info['response_code'];
    803805                $theResponse['message'] = get_status_header_desc($info['response_code']);