Skip to content

Commit 4ea57d3

Browse files
authored
Merge pull request #7 from jarrodbell/patch-1
Update DeployBot.php
2 parents 904bb90 + 353b332 commit 4ea57d3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/DeployBot.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ public function __construct($api_key, $account, $client = null)
1919
$this->api_endpoint = $this->parseApiEndpoint($account);
2020

2121
$this->client = ($client) ?: new Client([
22-
'base_url' => $this->api_endpoint,
23-
'defaults' => [
24-
//'proxy' => 'http://localhost:8888',
25-
'headers' => [
26-
'X-Api-Token' => $this->api_key,
27-
'Accept' => 'application/json',
28-
],
22+
'base_uri' => $this->api_endpoint,
23+
'headers' => [
24+
'X-Api-Token' => $this->api_key,
25+
'Accept' => 'application/json',
2926
],
3027
'debug' => false,
3128
]);

0 commit comments

Comments
 (0)