make sure we do not search for separator if it's json for sure

This commit is contained in:
Me No Dev 2016-01-21 19:32:40 +02:00
parent 01c3b6644d
commit 268c61d8bf
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }