make sure we do not search for separator if it's json for sure
This commit is contained in:
parent
01c3b6644d
commit
268c61d8bf
|
@ -280,7 +280,7 @@ void AsyncWebServerRequest::_parsePlainPostChar(uint8_t data){
|
||||||
_temp = _urlDecode(_temp);
|
_temp = _urlDecode(_temp);
|
||||||
String name = "body";
|
String name = "body";
|
||||||
String value = _temp;
|
String value = _temp;
|
||||||
if(_temp.indexOf('=') > 0){
|
if(!_temp.startsWith("{") && !_temp.startsWith("[") && _temp.indexOf('=') > 0){
|
||||||
name = _temp.substring(0, _temp.indexOf('='));
|
name = _temp.substring(0, _temp.indexOf('='));
|
||||||
value = _temp.substring(_temp.indexOf('=') + 1);
|
value = _temp.substring(_temp.indexOf('=') + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue