8000 Update src/HTTPMultipartBodyParser.cpp · WuFengGit/esp32_https_server@250decd · GitHub
[go: up one dir, main page]

Skip to content

Commit 250decd

Browse files
jackjansenfhessel
andauthored
Update src/HTTPMultipartBodyParser.cpp
Co-Authored-By: Frank Hessel <frnkhessel@googlemail.com>
1 parent b1dcfd4 commit 250decd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/HTTPMultipartBodyParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ HTTPMultipartBodyParser::HTTPMultipartBodyParser(HTTPRequest * req):
2626
discardBody();
2727
return;
2828
}
29-
//TODO: remove all magic constants
30-
boundary = contentType.substr(boundaryIndex + 9);
29+
boundary = contentType.substr(boundaryIndex + 9); // "boundary="
3130
auto commaIndex = boundary.find(';');
3231
boundary = "--" + boundary.substr(0, commaIndex);
3332
if(boundary.size() > 72) {

0 commit comments

Comments
 (0)
0