File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
libraries/ESP8266WebServer/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,19 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
109
109
if (!isForm){
110
110
if (searchStr != " " ) searchStr += ' &' ;
111
111
String bodyLine = client.readStringUntil (' \r ' );
112
+ #ifdef DEBUG
113
+ DEBUG_OUTPUT.print (" Plain: " );
114
+ DEBUG_OUTPUT.println (bodyLine);
115
+ #endif
112
116
if (bodyLine.startsWith (" {" ) || bodyLine.startsWith (" [" ) || bodyLine.indexOf (' =' ) == -1 ){
113
117
// plain post json or other data
114
118
searchStr += " plain=" ;
119
+ searchStr += bodyLine;
120
+ searchStr += client.readString ();
121
+ } else {
122
+ searchStr += bodyLine;
123
+ client.readStringUntil (' \n ' );
115
124
}
116
- searchStr += bodyLine;
117
- client.readStringUntil (' \n ' );
118
125
}
119
126
_parseArguments (searchStr);
120
127
if (isForm){
You can’t perform that action at this time.
0 commit comments