Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7294ff1

Browse files
authoredJul 30, 2020
Update Parsing.cpp
1 parent 439923e commit 7294ff1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
 

‎libraries/WebServer/src/Parsing.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -460,21 +460,21 @@ bool WebServer::_parseForm(WiFiClient& client, String boundary, uint32_t len){
460460
uint8_t endBuf[boundary.length()];
461461
uint32_t i = 0;
462462
while(i < boundary.length()){
463-
argByte = _uploadReadByte(client);
463+
argByte = _uploadReadByte(client);
464464
if(argByte < 0) return _parseFormUploadAborted();
465465
if ((char)argByte == 0x0D){
466-
_uploadWriteByte(0x0D);
467-
_uploadWriteByte(0x0A);
468-
_uploadWriteByte((uint8_t)('-'));
469-
_uploadWriteByte((uint8_t)('-'));
470-
uint32_t j = 0;
471-
while(j < i){
472-
_uploadWriteByte(endBuf[j++]);
473-
}
474-
goto readfile;
475-
}
476-
endBuf[i++] = (uint8_t)argByte;
477-
}
466+
_uploadWriteByte(0x0D);
467+
_uploadWriteByte(0x0A);
468+
_uploadWriteByte((uint8_t)('-'));
469+
_uploadWriteByte((uint8_t)('-'));
470+
uint32_t j = 0;
471+
while(j < i){
472+
_uploadWriteByte(endBuf[j++]);
473+
}
474+
goto readfile;
475+
}
476+
endBuf[i++] = (uint8_t)argByte;
477+
}
478478

479479
if (strstr((const char*)endBuf, boundary.c_str()) != NULL){
480480
if(_currentHandler && _currentHandler->canUpload(_currentUri))

0 commit comments

Comments
 (0)
Please sign in to comment.