diff --git a/src/HttpClient.php b/src/HttpClient.php index a005542..75f19ff 100644 --- a/src/HttpClient.php +++ b/src/HttpClient.php @@ -122,7 +122,7 @@ public function doRequest( array $headers = [], $ttl = CacheDurationsEnum::DURATION_10_MIN ): ResponseInterface { - if (strpos($uri, $this->apiUrl) !== 0) { + if ( ! empty($this->apiUrl) && strpos($uri, $this->apiUrl) !== 0) { $uri = $this->apiUrl . $uri; }