Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed May 6, 2016
1 parent 00db46f commit 144339c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/HttpClient/Guzzle5HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,16 @@ public function send(RequestInterface $request)

private function createRequest(RequestInterface $request)
{
$options = [
'exceptions' => false,
'allow_redirects' => false,
];

$options['version'] = $request->getProtocolVersion();
$options['headers'] = $request->getHeaders();
$options['body'] = (string) $request->getBody();

return $this->client->createRequest(
$request->getMethod(),
(string) $request->getUri(),
$options
[
'exceptions' => false,
'allow_redirects' => false,
'version' => $request->getProtocolVersion(),
'headers' => $request->getHeaders(),
'body' => (string) $request->getBody()
]
);
}

Expand Down

0 comments on commit 144339c

Please sign in to comment.