From 0a5c71d4dd6405502b1d1d0a02b5d0927d519986 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 6 Aug 2012 15:02:33 -0700 Subject: [PATCH] [FileBackend] Fixed curl call broken by 10ec7a1. Change-Id: I661d2f586d3e3177c2f233153787597095872535 --- includes/filerepo/backend/SwiftFileBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1