fix case where the content type has more data

This commit is contained in:
Me No Dev
2016-01-21 18:41:48 +02:00
parent 6d290d6805
commit ebdfec9832

View File

@@ -95,7 +95,7 @@ void AsyncWebServerRequest::_onData(void *buf, size_t len){
} }
} else { } else {
if(_parsedLength == 0){ if(_parsedLength == 0){
if(_contentType == "application/x-www-form-urlencoded"){ if(_contentType.startsWith("application/x-www-form-urlencoded")){
_isPlainPost = true; _isPlainPost = true;
} else if(_contentType == "text/plain" && __is_param_char(((char*)buf)[0])){ } else if(_contentType == "text/plain" && __is_param_char(((char*)buf)[0])){
size_t i = 0; size_t i = 0;