Skip to content

Commit

Permalink
Merge pull request #222 from TransbankDevelopers/feat/fix-guzzle-5-re…
Browse files Browse the repository at this point in the history
…quest

Fix guzzle 5 request
  • Loading branch information
Felipe Fiebig authored Nov 8, 2021
2 parents 17e824a + 437737e commit 9602768
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Utils/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ protected function sendGuzzle5Request($method, $url, array $headers, $payload)
{
$client = new Client();

return $client->request($method, $url, [
$request = $client->createRequest($method, $url, [
'headers' => $headers,
'body' => $payload,
]);

return $client->send($request);
}

/**
Expand Down

0 comments on commit 9602768

Please sign in to comment.