Skip to content

Commit 5c484d5

Browse files
committed
allow empty response in webAPI
1 parent 96bf1a3 commit 5c484d5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/web/WebAPIService.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) {
127127
}
128128
emsesp::EMSESP::logger().err(error);
129129
api_fails_++;
130-
} else {
131-
// if there was no json output from the call, default to the output message 'OK'.
132-
if (!output.size()) {
133-
output["message"] = "OK";
134-
}
135130
}
136131

137132
// if we're returning single values, just sent as plain text

0 commit comments

Comments
 (0)