Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 250decd

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎src/HTTPMultipartBodyParser.cpp‎

Copy file name to clipboardExpand all lines: src/HTTPMultipartBodyParser.cpp
+1-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.