From 2e6dff35bd961d77ffbdc779f0a745705b1b3108 Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 17 Aug 2017 19:17:21 +0200 Subject: [PATCH] Allow for double quotes in boundary, closes #191 (#192) https://tools.ietf.org/html/rfc2046#section-5.1.1 --- src/WebRequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index 1711c82..473ba13 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -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 {