From 42cbacd07cc11505aa47dae0e2b970c743e4850f Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 4 May 2024 14:18:27 +0200 Subject: [PATCH] add comments --- lib/framework/HttpEndpoint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/framework/HttpEndpoint.h b/lib/framework/HttpEndpoint.h index 636638da3..365303162 100644 --- a/lib/framework/HttpEndpoint.h +++ b/lib/framework/HttpEndpoint.h @@ -40,14 +40,14 @@ class HttpEndpoint { if (request->method() == HTTP_POST) { // Handle POST if (!json.is()) { - request->send(400); + request->send(400); // error, bad request return; } StateUpdateResult outcome = _statefulService->updateWithoutPropagation(json.as(), _stateUpdater); if (outcome == StateUpdateResult::ERROR) { - request->send(400); // error + request->send(400); // error, bad request return; } else if (outcome == StateUpdateResult::CHANGED || outcome == StateUpdateResult::CHANGED_RESTART) { // persist changes