Index: branches/new-upload/phase3/includes/Import.php |
— | — | @@ -1105,7 +1105,8 @@ |
1106 | 1106 | # quicker and sorts out user-agent problems which might |
1107 | 1107 | # otherwise prevent importing from large sites, such |
1108 | 1108 | # as the Wikimedia cluster, etc. |
1109 | | - $data = Http::request( $method, $url ); |
| 1109 | + $req = new HttpRequest( $url, array( 'method' => $method ) ); |
| 1110 | + $data = $req->doRequest(); |
1110 | 1111 | if( $data !== false ) { |
1111 | 1112 | $file = tmpfile(); |
1112 | 1113 | fwrite( $file, $data ); |