Changeset 52960
- Timestamp:
- 03/20/2022 03:35:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-streams.php
r52680 r52960 265 265 266 266 $strResponse = ''; 267 $body Started= false;267 $body_started = false; 268 268 $keep_reading = true; 269 269 $block_size = 4096; … … 297 297 while ( ! feof( $handle ) && $keep_reading ) { 298 298 $block = fread( $handle, $block_size ); 299 if ( ! $body Started ) {299 if ( ! $body_started ) { 300 300 $strResponse .= $block; 301 301 if ( strpos( $strResponse, "\r\n\r\n" ) ) { 302 302 $processed_response = WP_Http::processResponse( $strResponse ); 303 $body Started= true;303 $body_started = true; 304 304 $block = $processed_response['body']; 305 305 unset( $strResponse ); … … 342 342 $strResponse .= $block; 343 343 344 if ( ! $body Started && strpos( $strResponse, "\r\n\r\n" ) ) {344 if ( ! $body_started && strpos( $strResponse, "\r\n\r\n" ) ) { 345 345 $header_length = strpos( $strResponse, "\r\n\r\n" ) + 4; 346 $body Started= true;346 $body_started = true; 347 347 } 348 348 349 349 $keep_reading = ( 350 ! $body Started350 ! $body_started 351 351 || ! isset( $parsed_args['limit_response_size'] ) 352 352 || strlen( $strResponse ) < ( $header_length + $parsed_args['limit_response_size'] )
Note: See TracChangeset
for help on using the changeset viewer.