Skip to content

Commit 8a422c5

Browse files
committed
Use cURL by default
1 parent 6b85560 commit 8a422c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Github/HttpClient/HttpClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Github\HttpClient;
44

55
use Buzz\Browser;
6+
use Buzz\Client\Curl;
67
use Buzz\Message\Response;
78

89
/**
@@ -54,7 +55,7 @@ class HttpClient implements HttpClientInterface
5455
public function __construct(array $options = array(), Browser $browser = null)
5556
{
5657
$this->options = array_merge($this->options, $options);
57-
$this->browser = $browser ?: new Browser();
58+
$this->browser = $browser ?: new Browser(new Curl());
5859

5960
$this->browser->getClient()->setTimeout($this->options['timeout']);
6061
$this->browser->getClient()->setVerifyPeer(false);

0 commit comments

Comments
 (0)