Skip to content

Commit

Permalink
Merge pull request #45 from vfalies/1.8.1
Browse files Browse the repository at this point in the history
1.8.1
  • Loading branch information
vfalies committed Mar 28, 2020
2 parents 1161510 + 81caceb commit 257cf71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.8.1] - 2020-03-28
### Changed

- Fix http response

## [1.8] - 2020-03-07
### Added

Expand Down
3 changes: 3 additions & 0 deletions src/VfacTmdb/Tmdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ private function decodeRequest($res, $method, $url, $form_params) : \stdClass
{
$content = $res->getBody();

if ( is_object($content)) {
$content = $content->getContents();
}
if (empty($content)) {
$this->logger->error('Request Body empty', array('method' => $method, 'url' => $url, 'form_params' => $form_params));
throw new ServerErrorException();
Expand Down

0 comments on commit 257cf71

Please sign in to comment.