WordPress.org

Make WordPress Core

Ticket #13513: 13513.minor.2.patch

File 13513.minor.2.patch, 697 bytes (added by hakre, 4 years ago)

13513.minor.patch

  • wp-includes/class-http.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    779779                if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($arrHeaders['headers']) ) 
    780780                        $process['body'] = WP_Http_Encoding::decompress( $process['body'] ); 
    781781 
    782                 return array('headers' => $arrHeaders['headers'], 'body' => $process['body'], 'response' => $arrHeaders['response'], 'cookies' => $arrHeaders['cookies']); 
     782                return array_merge($arrHeaders, array( 'body' => $process['body'] ) ); 
    783783        } 
    784784 
    785785        /**