| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b1dcfd4 commit 250decd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,8 +26,7 @@ HTTPMultipartBodyParser::HTTPMultipartBodyParser(HTTPRequest * req): | |||
| 26 | 26 | discardBody(); | |
| 27 | 27 | return; | |
| 28 | 28 | } | |
| 29 | - //TODO: remove all magic constants | ||
| 30 | - boundary = contentType.substr(boundaryIndex + 9); | ||
| 29 | + boundary = contentType.substr(boundaryIndex + 9); // "boundary=" | ||
| 31 | 30 | auto commaIndex = boundary.find(';'); | |
| 32 | 31 | boundary = "--" + boundary.substr(0, commaIndex); | |
| 33 | 32 | if(boundary.size() > 72) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments