WordPress.org

Make WordPress Core

Ticket #11872: 11872.patch

File 11872.patch, 835 bytes (added by hakre, 4 years ago)
  • wp-includes/http.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    11861186                if ( ! $r['blocking'] ) 
    11871187                        return array( 'headers' => array(), 'body' => '', 'response' => array('code' => false, 'message' => false), 'cookies' => array() ); 
    11881188 
    1189                 list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2); 
     1189                $partsResponse = explode("\r\n\r\n", $strResponse, 2); 
     1190                $partsResponse[] = ''; 
     1191                list($theHeaders, $theBody) = $partsResponse; 
     1192 
    11901193                $theHeaders = WP_Http::processHeaders($theHeaders); 
    11911194 
    11921195                if ( ! empty( $theBody ) && isset( $theHeaders['headers']['transfer-encoding'] ) && 'chunked' == $theHeaders['headers']['transfer-encoding'] ) {