Make WordPress Core

Ticket #4779: 4779.r8572.diff

File 4779.r8572.diff, 542 bytes (added by santosj, 16 years ago)

Checks the headers for the transfer-encoding for chunked and then runs the function. based off of r8572

  • http.php

     
    797797                list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
    798798                $theHeaders = WP_Http::processHeaders($theHeaders);
    799799
    800                 if ( !empty($theBody) )
     800                if ( ! empty( $theBody ) && isset( $theHeaders['headers']['transfer-encoding'] ) && 'chunked' == $theHeaders['headers']['transfer-encoding'] )
    801801                        $theBody = http_chunked_decode($theBody);
    802802
    803803                $theResponse = array();