We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b71d51 commit d9b3686Copy full SHA for d9b3686
lib/Http/GuzzleHttpClient.php
@@ -2,6 +2,7 @@
2
3
namespace Algolia\AlgoliaSearch\Http;
4
5
+use GuzzleHttp\Utils;
6
use Algolia\AlgoliaSearch\Http\Psr7\Response;
7
use GuzzleHttp\Client as GuzzleClient;
8
use GuzzleHttp\Exception\ConnectException;
@@ -44,7 +45,7 @@ public function sendRequest(
44
45
46
private static function buildClient(array $config = [])
47
{
- $handlerStack = new HandlerStack(\GuzzleHttp\choose_handler());
48
+ $handlerStack = new HandlerStack(Utils::chooseHandler());
49
$handlerStack->push(Middleware::prepareBody(), 'prepare_body');
50
$config = array_merge(['handler' => $handlerStack], $config);
51
0 commit comments