Limit authentication tries

This commit is contained in:
2021-11-19 01:40:10 +01:00
parent 205c6af266
commit 485650713a

View File

@@ -133,6 +133,7 @@ tl::expected<void, std::string> 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;