8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4720b commit b0dead2Copy full SHA for b0dead2
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/Parsing.cpp
@@ -108,7 +108,12 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
108
109
if (!isForm){
110
if (searchStr != "") searchStr += '&';
111
- searchStr += client.readStringUntil('\r');
+ String bodyLine = client.readStringUntil('\r');
112
+ if(bodyLine.startsWith('{') || bodyLine.startsWith('[') || bodyLine.indexOf('=') == -1){
113
+ //plain post json or other data
114
+ searchStr += "plain";
115
+ }
116
+ searchStr += bodyLine;
117
client.readStringUntil('\n');
118
}
119
_parseArguments(searchStr);
0 commit comments