Skip to content

Commit

Permalink
Version 1.1.3 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed May 9, 2018
1 parent 2d1fe4f commit e507480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Eseye.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Eseye
/**
* The Eseye Version.
*/
const VERSION = '1.1.2';
const VERSION = '1.1.3';

/**
* @var \Seat\Eseye\Containers\EsiAuthentication
Expand Down
13 changes: 6 additions & 7 deletions src/Fetchers/GuzzleFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,19 @@ public function httpRequest(
implode(' ', $e->getResponse()->getHeader('X-Esi-Error-Limit-Remain')) . ']'
);

// since getBody is a stream reader, we store the content at first call which we will forward to other method
// Grab the body from the StreamInterface intance.
$responseBody = $e->getResponse()->getBody()->getContents();

// For debugging purposes, log the response body
$this->logger->debug('Request for ' . $method . ' -> ' . $uri . ' failed. Response body was: ' .
$responseBody);

// Raise the exception that should be handled by the caller
throw new RequestFailedException($e,
$this->makeEsiResponse(
$responseBody,
$e->getResponse()->getHeaders(),
'now',
$e->getResponse()->getStatusCode())
throw new RequestFailedException($e, $this->makeEsiResponse(
$responseBody,
$e->getResponse()->getHeaders(),
'now',
$e->getResponse()->getStatusCode())
);
}

Expand Down

0 comments on commit e507480

Please sign in to comment.