Pinking shears

git-svn-id: https://develop.svn.wordpress.org/trunk@24303 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2013-05-20 12:10:58 +00:00
parent f1068cbe96
commit 687d1a2ce9
5 changed files with 17 additions and 17 deletions

View File

@@ -762,12 +762,12 @@ class WP_Http_Fsockopen {
$process['body'] = '';
}
}
if ( isset( $r['limit-response-size'] ) && ( $bytes_written + strlen( $block ) ) > $r['limit-response-size'] )
$block = substr( $block, 0, ( $r['limit-response-size'] - $bytes_written ) );
$bytes_written += fwrite( $stream_handle, $block );
$bytes_written += fwrite( $stream_handle, $block );
$keep_reading = !isset( $r['limit-response-size'] ) || $bytes_written < $r['limit-response-size'];
}
@@ -1847,7 +1847,7 @@ class WP_Http_Encoding {
if ( function_exists( 'gzuncompress' ) )
$type[] = 'compress;q=0.5';
if ( function_exists( 'gzdecode' ) )
$type[] = 'gzip;q=0.5';
}