summaryrefslogtreecommitdiff
path: root/src/net/HttpParser.cpp
diff options
context:
space:
mode:
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;
}