diff --git a/CHANGELOG.md b/CHANGELOG.md index 98d3b5a..98049e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/VfacTmdb/Tmdb.php b/src/VfacTmdb/Tmdb.php index 68cc634..2d340d0 100644 --- a/src/VfacTmdb/Tmdb.php +++ b/src/VfacTmdb/Tmdb.php @@ -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();