Changeset 11236
- Timestamp:
- 05/07/2009 09:18:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r11154 r11236 722 722 $process['body'] = WP_Http::chunkTransferDecode($process['body']); 723 723 724 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($arrHeaders ) )724 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($arrHeaders['headers']) ) 725 725 $process['body'] = WP_Http_Encoding::decompress( $process['body'] ); 726 726 … … 836 836 $strResponse = WP_Http::chunkTransferDecode($strResponse); 837 837 838 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($processedHeaders ) )838 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($processedHeaders['headers']) ) 839 839 $strResponse = WP_Http_Encoding::decompress( $strResponse ); 840 840 … … 1004 1004 $strResponse = WP_Http::chunkTransferDecode($strResponse); 1005 1005 1006 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($processedHeaders ) )1006 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($processedHeaders['headers']) ) 1007 1007 $strResponse = WP_Http_Encoding::decompress( $strResponse ); 1008 1008 … … 1160 1160 } 1161 1161 1162 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders ) )1162 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 1163 1163 $theBody = http_inflate( $theBody ); 1164 1164 … … 1343 1343 curl_close( $handle ); 1344 1344 1345 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders ) )1345 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 1346 1346 $theBody = WP_Http_Encoding::decompress( $theBody ); 1347 1347
Note: See TracChangeset
for help on using the changeset viewer.