Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function sendRequest(RequestInterface $request)
private function createRequest(RequestInterface $request)
{
$options = [
'exceptions' => false,
'exceptions' => false,
'allow_redirects' => false,
];

Expand Down Expand Up @@ -119,6 +119,7 @@ private function handleException(GuzzleExceptions\TransferException $exception,
// Make sure we have a response for the HttpException
if ($exception->hasResponse()) {
$psr7Response = $this->createResponse($exception->getResponse());

return new HttplugException\HttpException(
$exception->getMessage(),
$request,
Expand Down