From 5c484d58dc85c7ff84b943dc8b76db94deeebde0 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 20 Sep 2023 16:03:05 +0200 Subject: [PATCH] allow empty response in webAPI --- src/web/WebAPIService.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/web/WebAPIService.cpp b/src/web/WebAPIService.cpp index 67eadf422..5c340038c 100644 --- a/src/web/WebAPIService.cpp +++ b/src/web/WebAPIService.cpp @@ -127,11 +127,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) { } emsesp::EMSESP::logger().err(error); api_fails_++; - } else { - // if there was no json output from the call, default to the output message 'OK'. - if (!output.size()) { - output["message"] = "OK"; - } } // if we're returning single values, just sent as plain text