From d735e629ccccbfc1469651bf62588ebedba8ffe9 Mon Sep 17 00:00:00 2001 From: Ryan O'Beirne Date: Sat, 6 Jul 2024 17:25:00 -0400 Subject: [PATCH] Add api headers to test --- Immich/Immich.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Immich/Immich.php b/Immich/Immich.php index 2e99aca088..704d4963ec 100644 --- a/Immich/Immich.php +++ b/Immich/Immich.php @@ -16,7 +16,13 @@ public function __construct() public function test() { - $test = parent::appTest($this->url("server-info/statistics")); + $attrs = [ + "headers" => [ + "Accept" => "application/json", + "x-api-key" => $this->config->api_key, + ], + ]; + $test = parent::appTest($this->url("server-info/statistics"), $attrs); echo $test->status; }