1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;