From: Aaron Date: Mon, 6 Aug 2012 22:02:33 +0000 (-0700) Subject: [FileBackend] Fixed curl call broken by 10ec7a1. X-Git-Tag: 1.31.0-rc.0~22825 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=0a5c71d4dd6405502b1d1d0a02b5d0927d519986;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Fixed curl call broken by 10ec7a1. Change-Id: I661d2f586d3e3177c2f233153787597095872535 --- diff --git a/includes/filerepo/backend/SwiftFileBackend.php b/includes/filerepo/backend/SwiftFileBackend.php index 30634409c3..5be86e6807 100644 --- a/includes/filerepo/backend/SwiftFileBackend.php +++ b/includes/filerepo/backend/SwiftFileBackend.php @@ -1087,7 +1087,7 @@ class SwiftFileBackend extends FileBackendStore { $url = $creds['storage_url'] . '/' . rawurlencode( $contObj->name ); // Note: 10 second timeout consistent with php-cloudfiles - $req = new CurlHttpRequest( $url, array( 'method' => 'POST', 'timeout' => 10 ) ); + $req = MWHttpRequest::factory( $url, array( 'method' => 'POST', 'timeout' => 10 ) ); $req->setHeader( 'X-Auth-Token', $creds['auth_token'] ); $req->setHeader( 'X-Container-Read', implode( ',', $readGrps ) ); $req->setHeader( 'X-Container-Write', implode( ',', $writeGrps ) );