summaryrefslogtreecommitdiff
path: root/src/net/HttpParser.cpp
diff options
context:
space:
mode:
authorjellybrick <shlee1503@naver.com>2020-03-14 23:21:30 +0900
committerjellybrick <shlee1503@naver.com>2020-03-14 23:21:42 +0900
commit64174491dac84c559db5c48ed850177fa3eb4da0 (patch)
tree5f7a754d57c2a7ec439f309df5e4b8d964d0834f /src/net/HttpParser.cpp
parent19f49b7a2f540a756ed9759b0fa5fb52bf73f20e (diff)
Fix #127, #128 & Code quality improvements
It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'.
Diffstat (limited to 'src/net/HttpParser.cpp')
-rw-r--r--src/net/HttpParser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index 8006c85..2d3085f 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -81,7 +81,6 @@ string HttpParser::generateMultipartFormData(const vector<HttpReqArg>& args, con
string HttpParser::generateMultipartBoundary(const vector<HttpReqArg>& args) const {
string result;
- srand((std::uint32_t) time(nullptr));
for (const HttpReqArg& item : args) {
if (item.isFile) {
while (result.empty() || item.value.find(result) != string::npos) {