Ticket #7481: 7481.r8582.diff
File 7481.r8582.diff, 818 bytes (added by , 16 years ago) |
---|
-
http.php
871 871 872 872 if ( true === $r['blocking'] ) { 873 873 curl_setopt( $handle, CURLOPT_HEADER, true ); 874 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 ); 874 875 } else { 875 876 curl_setopt( $handle, CURLOPT_HEADER, false ); 876 877 curl_setopt( $handle, CURLOPT_NOBODY, true ); 878 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 0 ); 877 879 } 878 880 879 881 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 ); … … 894 896 curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 ); 895 897 896 898 if ( ! $r['blocking'] ) { 899 curl_exec( $handle ); 897 900 curl_close( $handle ); 898 901 return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') ); 899 902 }