Ticket #20219: class-http.php.diff
File class-http.php.diff, 716 bytes (added by , 13 years ago) |
---|
-
.../wp-includes/class-http.php
1115 1115 if ( $curl_error = curl_error($handle) ) 1116 1116 return new WP_Error('http_request_failed', $curl_error); 1117 1117 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array(301, 302) ) ) 1118 return new WP_Error('http_request_failed', __('Too many redirects.')); 1118 if ( $r['redirection']-- > 0 ) { 1119 return $this->request( $theHeaders['headers']['location'], $r ); 1120 } else { 1121 return new WP_Error( 'http_request_failed', __( 'Too many redirects3.' ) ); 1122 } 1119 1123 } 1120 1124 1121 1125 $this->headers = '';