Changeset 51931
- Timestamp:
- 10/25/2021 04:18:26 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-curl.php
r51850 r51931 257 257 258 258 curl_exec( $handle ); 259 $theHeaders = WP_Http::processHeaders( $this->headers, $url ); 259 260 $processed_headers = WP_Http::processHeaders( $this->headers, $url ); 260 261 $theBody = $this->body; 261 262 $bytes_written_total = $this->bytes_written_total; … … 268 269 269 270 // If an error occurred, or, no response. 270 if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $ theHeaders['headers'] ) ) ) {271 if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $processed_headers['headers'] ) ) ) { 271 272 if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) { 272 273 if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) { … … 300 301 301 302 $response = array( 302 'headers' => $ theHeaders['headers'],303 'headers' => $processed_headers['headers'], 303 304 'body' => null, 304 'response' => $ theHeaders['response'],305 'cookies' => $ theHeaders['cookies'],305 'response' => $processed_headers['response'], 306 'cookies' => $processed_headers['cookies'], 306 307 'filename' => $parsed_args['filename'], 307 308 ); … … 313 314 } 314 315 315 if ( true === $parsed_args['decompress'] && true === WP_Http_Encoding::should_decode( $theHeaders['headers'] ) ) { 316 if ( true === $parsed_args['decompress'] 317 && true === WP_Http_Encoding::should_decode( $processed_headers['headers'] ) 318 ) { 316 319 $theBody = WP_Http_Encoding::decompress( $theBody ); 317 320 }
Note: See TracChangeset
for help on using the changeset viewer.