mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Don't forget to actually use the auth
This commit is contained in:
@@ -26,7 +26,7 @@ void configure_http_client(HTTPClient &client, String url, bool stream, int time
|
|||||||
|
|
||||||
client.begin(url);
|
client.begin(url);
|
||||||
|
|
||||||
if (get_current_printer_config()->auth_configured) {
|
if (config->auth_configured) {
|
||||||
client.addHeader("X-Api-Key", get_current_printer_config()->klipper_auth);
|
client.addHeader("X-Api-Key", config->klipper_auth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user