allow empty response in webAPI

This commit is contained in:
MichaelDvP
2023-09-20 16:03:05 +02:00
parent 96bf1a32ee
commit 5c484d58dc

View File

@@ -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