WordPress.org

Make WordPress Core

Ticket #13513: 13513.minor.patch

File 13513.minor.patch, 669 bytes (added by hakre, 5 years ago)

A little fix while in that file.

  • wp-includes/class-http.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    761761                if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($arrHeaders['headers']) ) 
    762762                        $process['body'] = WP_Http_Encoding::decompress( $process['body'] ); 
    763763 
    764                 return array('headers' => $arrHeaders['headers'], 'body' => $process['body'], 'response' => $arrHeaders['response'], 'cookies' => $arrHeaders['cookies']); 
     764                return array_merge($process, $arrHeaders); 
    765765        } 
    766766 
    767767        /**