Ticket #20389: 20389.patch
File 20389.patch, 645 bytes (added by , 13 years ago) |
---|
-
wordpress/wp-includes/class-http.php
1110 1110 $theBody = $theResponse; 1111 1111 1112 1112 // If no response 1113 if ( 0 == strlen( $theResponse ) && empty( $theHeaders ->headers) ) {1113 if ( 0 == strlen( $theResponse ) && empty( $theHeaders['headers'] ) ) { 1114 1114 if ( $curl_error = curl_error( $handle ) ) 1115 1115 return new WP_Error( 'http_request_failed', $curl_error ); 1116 1116 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) )