From 32f477726b4f8f99eba13ece454f62d7ce60ae94 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 5 May 2021 08:04:06 +0200 Subject: [PATCH] allow not only commands in api --- src/WebAPIService.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/WebAPIService.cpp b/src/WebAPIService.cpp index 035059d24..98caebd02 100644 --- a/src/WebAPIService.cpp +++ b/src/WebAPIService.cpp @@ -173,10 +173,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, std::string & device_ if (cmd_s.empty()) { cmd_s = "info"; } - if (Command::find_command(device_type, cmd_s.c_str()) == nullptr) { - send_message_response(request, 422, "Invalid cmd"); // Unprocessable Entity - return; - } // check that we have permissions first. We require authenticating on 1 or more of these conditions: // 1. any HTTP POSTs or PUTs