From 485650713abdd6f32ee4f150ad06c94b0c38592c Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Fri, 19 Nov 2021 01:40:10 +0100 Subject: [PATCH] Limit authentication tries --- src/asynchttprequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asynchttprequest.cpp b/src/asynchttprequest.cpp index a02e2a4..ee2dd3c 100644 --- a/src/asynchttprequest.cpp +++ b/src/asynchttprequest.cpp @@ -133,6 +133,7 @@ tl::expected AsyncHttpRequest::createClient(std::string_view esp_http_client_config_t config{}; config.url = url.data(); + config.max_authorization_retries = 1; config.event_handler = staticHttpEventHandler; config.user_data = this;