From 19cfaefd362f24f86b1fddb0cf3cabbb026a4f80 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 14 Jul 2024 19:57:43 +0200 Subject: [PATCH] Don't forget to actually use the auth --- CYD-Klipper/src/core/http_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CYD-Klipper/src/core/http_client.cpp b/CYD-Klipper/src/core/http_client.cpp index abb0ece..a27945b 100644 --- a/CYD-Klipper/src/core/http_client.cpp +++ b/CYD-Klipper/src/core/http_client.cpp @@ -26,7 +26,7 @@ void configure_http_client(HTTPClient &client, String url, bool stream, int time client.begin(url); - if (get_current_printer_config()->auth_configured) { - client.addHeader("X-Api-Key", get_current_printer_config()->klipper_auth); + if (config->auth_configured) { + client.addHeader("X-Api-Key", config->klipper_auth); } } \ No newline at end of file