Skip to content

Commit 51969af

Browse files
author
Sergey Kasatkin
committed
Allow pass options array to guzzle request
1 parent 4513538 commit 51969af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Client.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ class Client
6767
*/
6868
protected $httpClient;
6969

70+
/**
71+
* @var array
72+
*/
73+
protected $httpOptions;
74+
7075
public function __construct(ClientInterface $httpClient, array $config = [])
7176
{
7277
$this->httpClient = $httpClient;
@@ -247,7 +252,7 @@ protected function query($uri, array $params = [], $method = self::METHOD_POST)
247252
'X-Secret' => $this->secret,
248253
], 0 < count($params) ? json_encode($params) : null);
249254

250-
$response = $this->httpClient->send($request);
255+
$response = $this->httpClient->send($request, $this->httpOptions);
251256

252257
$result = json_decode($response->getBody(), true);
253258

0 commit comments

Comments
 (0)