mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
allow empty response in webAPI
This commit is contained in:
@@ -127,11 +127,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) {
|
|||||||
}
|
}
|
||||||
emsesp::EMSESP::logger().err(error);
|
emsesp::EMSESP::logger().err(error);
|
||||||
api_fails_++;
|
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
|
// if we're returning single values, just sent as plain text
|
||||||
|
|||||||
Reference in New Issue
Block a user