From c2de999f0379fefdbda9f4ce5d2913d4766feb49 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 3 Sep 2016 23:30:14 +0300 Subject: [PATCH] fix broken uploads --- src/WebRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index db8a213..a93a4d3 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -388,10 +388,10 @@ void AsyncWebServerRequest::_parseMultipartPostByte(uint8_t data, bool last){ _temp += (char)data; if((char)data == '\n'){ if(_temp.length()){ - if(_temp.length() > 12 && _temp.substring(0, 12).equalsIgnoreCase("Content-Type:")){ + if(_temp.length() > 12 && _temp.substring(0, 12).equalsIgnoreCase("Content-Type")){ _itemType = _temp.substring(14); _itemIsFile = true; - } else if(_temp.length() > 19 && _temp.substring(0, 19).equalsIgnoreCase("Content-Disposition:")){ + } else if(_temp.length() > 19 && _temp.substring(0, 19).equalsIgnoreCase("Content-Disposition")){ _temp = _temp.substring(_temp.indexOf(';') + 2); while(_temp.indexOf(';') > 0){ String name = _temp.substring(0, _temp.indexOf('='));