From 205ab8a223ddf6591a3e8bfc9108506502977c11 Mon Sep 17 00:00:00 2001 From: soryu Date: Fri, 16 Jan 2026 12:23:49 +0000 Subject: Fixup: use default api.makima.jp URL and fix default branch detection Also add checkpointing/history --- makima/src/daemon/api/client.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makima/src/daemon/api') diff --git a/makima/src/daemon/api/client.rs b/makima/src/daemon/api/client.rs index b27d606..2318d5a 100644 --- a/makima/src/daemon/api/client.rs +++ b/makima/src/daemon/api/client.rs @@ -42,7 +42,9 @@ impl ApiClient { let url = format!("{}{}", self.base_url, path); let response = self.client .get(&url) + // Send both headers - server will try tool key first, then API key .header("X-Makima-Tool-Key", &self.api_key) + .header("X-Makima-API-Key", &self.api_key) .send() .await?; @@ -58,7 +60,9 @@ impl ApiClient { let url = format!("{}{}", self.base_url, path); let response = self.client .post(&url) + // Send both headers - server will try tool key first, then API key .header("X-Makima-Tool-Key", &self.api_key) + .header("X-Makima-API-Key", &self.api_key) .header("Content-Type", "application/json") .json(body) .send() @@ -72,7 +76,9 @@ impl ApiClient { let url = format!("{}{}", self.base_url, path); let response = self.client .post(&url) + // Send both headers - server will try tool key first, then API key .header("X-Makima-Tool-Key", &self.api_key) + .header("X-Makima-API-Key", &self.api_key) .send() .await?; @@ -88,7 +94,9 @@ impl ApiClient { let url = format!("{}{}", self.base_url, path); let response = self.client .put(&url) + // Send both headers - server will try tool key first, then API key .header("X-Makima-Tool-Key", &self.api_key) + .header("X-Makima-API-Key", &self.api_key) .header("Content-Type", "application/json") .json(body) .send() -- cgit v1.2.3