From 0ae3281398a9c5968487a42d4df83b3b32b6ff20 Mon Sep 17 00:00:00 2001 From: reloxx13 Date: Thu, 25 Jan 2018 00:30:09 +0100 Subject: [PATCH] Workaround for Alexa Bug The PR for https://github.com/esp8266/Arduino/issues/4235 This https://github.com/esp8266/Arduino/pull/4151 is the same issue, but with a diffrent solution. --- libraries/ESP8266WebServer/src/Parsing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266WebServer/src/Parsing.cpp b/libraries/ESP8266WebServer/src/Parsing.cpp index ac65d3779d..ef3409c8f8 100644 --- a/libraries/ESP8266WebServer/src/Parsing.cpp +++ b/libraries/ESP8266WebServer/src/Parsing.cpp @@ -190,7 +190,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) { searchStr += plainBuf; } _parseArguments(searchStr); - if(!isEncoded){ + if(!isEncoded||(0==_currentArgCount)){ // @20180124OF01: Workarround for Alexa Bug //plain post json or other data RequestArgument& arg = _currentArgs[_currentArgCount++]; arg.key = "plain";