From 5fdbd1df5b95423a9a44a650ad2924253ea940a4 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 5 Dec 2020 23:55:40 +0300 Subject: [PATCH] terminal: both API implementations to use line param instead of value --- code/espurna/terminal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/terminal.cpp b/code/espurna/terminal.cpp index 7fb7126f..8fe7c99c 100644 --- a/code/espurna/terminal.cpp +++ b/code/espurna/terminal.cpp @@ -551,8 +551,8 @@ void terminalWebApiSetup() { }, [](ApiRequest& api) { // TODO: since HTTP spec allows query string to contain repeating keys, allow iteration - // over every 'value' available to provide a way to call multiple commands at once - auto cmd = api.param(F("value")); + // over every received 'line' to provide a way to call multiple commands at once + auto cmd = api.param(F("line")); if (!cmd.length()) { return false; } @@ -585,7 +585,7 @@ void terminalWebApiSetup() { return true; } - auto* cmd_param = request->getParam("value", (request->method() == HTTP_PUT)); + auto* cmd_param = request->getParam("line", (request->method() == HTTP_PUT)); if (!cmd_param) { request->send(500); return true;