Changeset 17692
- Timestamp:
- 04/23/2011 01:49:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r17659 r17692 1092 1092 $theHeaders = WP_Http::processHeaders( $this->headers ); 1093 1093 1094 if ( ! empty($theResponse)&& ! is_bool( $theResponse ) ) // is_bool: when using $args['stream'], curl_exec will return (bool)true1094 if ( strlen($theResponse) > 0 && ! is_bool( $theResponse ) ) // is_bool: when using $args['stream'], curl_exec will return (bool)true 1095 1095 $theBody = $theResponse; 1096 1096 1097 1097 // If no response, and It's not a HEAD request with valid headers returned 1098 if ( empty($theResponse) && ('HEAD' != $args['method'] || empty($this->headers)) ) {1098 if ( 0 == strlen($theResponse) && ('HEAD' != $args['method'] || empty($this->headers)) ) { 1099 1099 if ( $curl_error = curl_error($handle) ) 1100 1100 return new WP_Error('http_request_failed', $curl_error);
Note: See TracChangeset
for help on using the changeset viewer.