Allow for double quotes in boundary, closes #191 (#192)

https://tools.ietf.org/html/rfc2046#section-5.1.1
This commit is contained in:
probonopd 2017-08-17 19:17:21 +02:00 committed by Me No Dev
parent a94265d72f
commit 2e6dff35bd
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ bool AsyncWebServerRequest::_parseReqHeader(){
} else if(name.equalsIgnoreCase("Content-Type")){
if (value.startsWith("multipart/")){
_boundary = value.substring(value.indexOf('=')+1);
_boundary.replace("\"","");
_contentType = value.substring(0, value.indexOf(';'));
_isMultipart = true;
} else {