Ticket #7456: http.8524.diff
| File http.8524.diff, 951 bytes (added by , 18 years ago) |
|---|
-
http.php
623 623 'user-agent' => $headers['User-Agent'], 624 624 'max_redirects' => $r['redirection'], 625 625 'protocol_version' => (float) $r['httpversion'], 626 'header' => $headers 626 'header' => $headers, 627 'timeout' => $r['timeout'] 627 628 ) 628 629 ); 629 630 … … 634 635 635 636 $handle = fopen($url, 'r', false, $context); 636 637 637 stream_set_timeout($handle, apply_filters('http_request_stream_timeout', $r['timeout']) );638 639 638 if ( ! $handle) 640 639 return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url)); 641 640 641 stream_set_timeout($handle, apply_filters('http_request_stream_timeout', $r['timeout']) ); 642 642 643 if ( ! $r['blocking'] ) { 643 644 fclose($handle); 644 645 return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)