summaryrefslogtreecommitdiff
path: root/src/net/HttpParser.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2021-12-04 12:02:39 +0100
committerGitHub <noreply@github.com>2021-12-04 12:02:39 +0100
commit55d3fbca78774d7c033cd31860fd1d5f11dd2ad1 (patch)
tree25d44cf50526fab019b5495a83d4546198307413 /src/net/HttpParser.cpp
parent814ac074633125c975fa6979e79c93cc7115a57b (diff)
parent1b69e2be2564de979dd481772f3f7d489e957c2f (diff)
Merge pull request #188 from JellyBrick/patch-3
migrate(user-id): from 32-bit integer to 64-bit integer
Diffstat (limited to 'src/net/HttpParser.cpp')
-rw-r--r--src/net/HttpParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index cc9b84b..246c47c 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -57,11 +57,11 @@ string HttpParser::generateRequest(const Url& url, const vector<HttpReqArg>& arg
return result;
}
-string HttpParser::generateMultipartFormData(const vector<HttpReqArg>& args, const string& bondary) const {
+string HttpParser::generateMultipartFormData(const vector<HttpReqArg>& args, const string& boundary) const {
string result;
for (const HttpReqArg& item : args) {
result += "--";
- result += bondary;
+ result += boundary;
result += "\r\nContent-Disposition: form-data; name=\"";
result += item.name;
if (item.isFile) {
@@ -77,7 +77,7 @@ string HttpParser::generateMultipartFormData(const vector<HttpReqArg>& args, con
result += item.value;
result += "\r\n";
}
- result += "--" + bondary + "--\r\n";
+ result += "--" + boundary + "--\r\n";
return result;
}