Skip to content

Commit

Permalink
Don't forget to actually use the auth
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Jul 14, 2024
1 parent 04d8902 commit 19cfaef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CYD-Klipper/src/core/http_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 19cfaef

Please sign in to comment.