diff --git a/lib/Helpers/MetarHTTPClient.php b/lib/Helpers/MetarHTTPClient.php index 765c682..0abe648 100644 --- a/lib/Helpers/MetarHTTPClient.php +++ b/lib/Helpers/MetarHTTPClient.php @@ -42,12 +42,13 @@ public function __construct($config = []) */ public function getMetarAPIResponse($url) { - if ($this->guzzle_conf) { + if (!empty($this->guzzle_conf)) { $client = new HttpClient($this->guzzle_conf); } else { $client = new HttpClient(); } $response = $client->get($url); - return $response->getBody(); + return $response->getBody() + ->getContents(); } }