We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1fb03 commit 75acf88Copy full SHA for 75acf88
src/WebRequest.cpp
@@ -316,13 +316,11 @@ bool AsyncWebServerRequest::_parseReqHeader(){
316
if(name.equalsIgnoreCase("Host")){
317
_host = value;
318
} else if(name.equalsIgnoreCase("Content-Type")){
319
+ _contentType = value.substring(0, value.indexOf(';'));
320
if (value.startsWith("multipart/")){
321
_boundary = value.substring(value.indexOf('=')+1);
322
_boundary.replace("\"","");
- _contentType = value.substring(0, value.indexOf(';'));
323
_isMultipart = true;
324
- } else {
325
- _contentType = value;
326
}
327
} else if(name.equalsIgnoreCase("Content-Length")){
328
_contentLength = atoi(value.c_str());
0 commit comments