From 3b55806b6be929dfbb654a594c6ab41702465f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1gi-Kaz=C3=A1r=20M=C3=A1rk?= Date: Tue, 22 Dec 2015 17:57:45 +0100 Subject: [PATCH] Fix No handler specified issue introduced in #19 --- src/Guzzle6HttpAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Guzzle6HttpAdapter.php b/src/Guzzle6HttpAdapter.php index 269a8c9..c13b662 100644 --- a/src/Guzzle6HttpAdapter.php +++ b/src/Guzzle6HttpAdapter.php @@ -31,7 +31,7 @@ class Guzzle6HttpAdapter implements HttpClient, HttpAsyncClient public function __construct(ClientInterface $client = null) { if (!$client) { - $handlerStack = new HandlerStack(); + $handlerStack = new HandlerStack(\GuzzleHttp\choose_handler()); $handlerStack->push(Middleware::prepareBody(), 'prepare_body'); $client = new Client(['handler' => $handlerStack]); }