fix: accept 32-character numeric command values

This commit is contained in:
Yurii committed 2026-12-01 01:40:34 +03:00
1 parent e654326ee5
commit 0977b50208
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -961,7 +961,7 @@ static void restApi() {
// Validate payload length
const auto& text = parameter->value();
const auto payload = trimPayload(std::string_view(text.c_str(), text.length()));
if (payload.size() >= 32) {
if (payload.size() > 32) {
return request->send(400);
}