From ab45c27d220e5c54e461c6cfd75b7f9fde74c23a Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Mon, 27 Dec 2021 12:41:51 +0100 Subject: [PATCH] Fix issues when the market API key is an empty string --- lib/HttpService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HttpService.php b/lib/HttpService.php index 1414f0c9..d5843244 100644 --- a/lib/HttpService.php +++ b/lib/HttpService.php @@ -245,7 +245,7 @@ public function getApiKey() { * @throws AppManagerException */ private function httpGet($path, $options, $apiKey) { - if ($apiKey !== null) { + if (!empty($apiKey)) { $options = \array_merge( [ 'headers' => ['Authorization' => "apikey: $apiKey"]