1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-01 03:26:58 +03:00

stop incorrectingly increase number of arguments when setting up arg("plain") (#8599)

This commit is contained in:
david gauchard
2022-06-12 22:47:36 +02:00
committed by GitHub
parent b7c1cfbc45
commit 9ace4ed849

View File

@ -182,7 +182,7 @@ typename ESP8266WebServerTemplate<ServerType>::ClientFuture ESP8266WebServerTemp
if (!isForm) { if (!isForm) {
if (contentLength) { if (contentLength) {
// add key=value: plain={body} (post json or other data) // add key=value: plain={body} (post json or other data)
RequestArgument& arg = _currentArgs[_currentArgCount++]; RequestArgument& arg = _currentArgs[_currentArgCount];
arg.key = F("plain"); arg.key = F("plain");
arg.value = plainBuf; arg.value = plainBuf;
_currentArgsHavePlain = 1; _currentArgsHavePlain = 1;