From f5aca6aa9344a9647aeb8c751edf1c5c30d814a6 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Feb 2022 09:51:16 +0100 Subject: [PATCH 1/2] fix test compiling --- src/test/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/test.cpp b/src/test/test.cpp index f72a53dff..e185c0818 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -608,6 +608,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const } if (command == "api_values") { +#if defined(EMSESP_STANDALONE) shell.printfln(F("Testing API getting values")); Mqtt::ha_enabled(false); Mqtt::nested_format(1); @@ -626,6 +627,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const EMSESP::webAPIService.webAPIService_get(&request); request.url("/api/boiler/values"); EMSESP::webAPIService.webAPIService_get(&request); +#endif } if (command == "mqtt_post") { From 47fb13aa4ad2f16416e0a4aa2a74e508ea4c88a8 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Feb 2022 09:51:34 +0100 Subject: [PATCH 2/2] allow larger exclude lists --- src/web/WebCustomizationService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 0a2498150..063a5f90a 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -46,7 +46,7 @@ WebCustomizationService::WebCustomizationService(AsyncWebServer * server, FS * f securityManager->wrapRequest(std::bind(&WebCustomizationService::reset_customization, this, _1), AuthenticationPredicates::IS_ADMIN)); _exclude_entities_handler.setMethod(HTTP_POST); - _exclude_entities_handler.setMaxContentLength(256); + _exclude_entities_handler.setMaxContentLength(1024); server->addHandler(&_exclude_entities_handler); _device_entities_handler.setMethod(HTTP_POST);