Changeset 52965
- Timestamp:
- 03/20/2022 04:10:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-curl.php
r52026 r52965 259 259 260 260 $processed_headers = WP_Http::processHeaders( $this->headers, $url ); 261 $ theBody= $this->body;261 $body = $this->body; 262 262 $bytes_written_total = $this->bytes_written_total; 263 263 … … 269 269 270 270 // If an error occurred, or, no response. 271 if ( $curl_error || ( 0 == strlen( $ theBody ) && empty( $processed_headers['headers'] ) ) ) {271 if ( $curl_error || ( 0 == strlen( $body ) && empty( $processed_headers['headers'] ) ) ) { 272 272 if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) { 273 273 if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) { … … 317 317 && true === WP_Http_Encoding::should_decode( $processed_headers['headers'] ) 318 318 ) { 319 $ theBody = WP_Http_Encoding::decompress( $theBody );320 } 321 322 $response['body'] = $ theBody;319 $body = WP_Http_Encoding::decompress( $body ); 320 } 321 322 $response['body'] = $body; 323 323 324 324 return $response;
Note: See TracChangeset
for help on using the changeset viewer.