From d1256a9560466c436f57dab15f68de88e00f1652 Mon Sep 17 00:00:00 2001 From: Bill Pirkle Date: Wed, 6 Feb 2019 10:29:52 -0600 Subject: [PATCH] Change HttpRequestFactory default to guzzle Activate the changes from T212175 by changing the default MWHttpRequest-derived type to guzzle. This is being done as a separate change so that it is conveniently revertable if issues arise. Bug: T214703 Change-Id: I0868d2e7f3eed6d7c6b15334eb3187f3edcd7bec --- includes/http/HttpRequestFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php index 0faef17325..a3a14d0aec 100644 --- a/includes/http/HttpRequestFactory.php +++ b/includes/http/HttpRequestFactory.php @@ -44,7 +44,7 @@ class HttpRequestFactory { */ public function create( $url, array $options = [], $caller = __METHOD__ ) { if ( !Http::$httpEngine ) { - Http::$httpEngine = function_exists( 'curl_init' ) ? 'curl' : 'php'; + Http::$httpEngine = 'guzzle'; } elseif ( Http::$httpEngine == 'curl' && !function_exists( 'curl_init' ) ) { throw new DomainException( __METHOD__ . ': curl (https://secure.php.net/curl) is not ' . 'installed, but Http::$httpEngine is set to "curl"' ); -- 2.20.1