Skip to content

Commit 4bb7ba1

Browse files
committed
Update library
1 parent c405083 commit 4bb7ba1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/Lamia/HttpClient/HttpClient.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ public function request(
133133
array $headers = array(),
134134
array $options = array()
135135
) {
136-
$request = $this->createRequest($httpMethod, $path, $body, $headers, $options);
136+
$request = $this->createRequest($httpMethod, $path, $body, $headers);
137137
try {
138-
$response = $this->client->send($request);
138+
$response = $this->client->send($request, $options);
139139
} catch (\LogicException $e) {
140140
throw new ErrorException($e->getMessage(), $e->getCode(), $e);
141141
} catch (\RuntimeException $e) {
@@ -172,15 +172,13 @@ protected function createRequest(
172172
$httpMethod,
173173
$path,
174174
$body = null,
175-
array $headers = array(),
176-
array $options
175+
array $headers = array()
177176
) {
178177
return new Request(
179178
$httpMethod,
180179
$path,
181180
array_merge($this->headers, $headers),
182-
$body,
183-
$options
181+
$body
184182
);
185183
}
186184
}

0 commit comments

Comments
 (0)