summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2021-12-03 18:40:13 +0900
committerJellyBrick <shlee1503@naver.com>2021-12-03 18:40:13 +0900
commit1b69e2be2564de979dd481772f3f7d489e957c2f (patch)
tree25d44cf50526fab019b5495a83d4546198307413 /src/net
parent3553efe53c9df0c685a58c00be71b9bb841b4c70 (diff)
fix(HttpParser/CurlHttpClient): fix typo
Diffstat (limited to 'src/net')
-rw-r--r--src/net/CurlHttpClient.cpp2
-rw-r--r--src/net/HttpParser.cpp6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp
index 13973cc..ff06138 100644
--- a/src/net/CurlHttpClient.cpp
+++ b/src/net/CurlHttpClient.cpp
@@ -2,8 +2,6 @@
#include "tgbot/net/CurlHttpClient.h"
-#include <boost/asio/ssl.hpp>
-
#include <cstddef>
#include <string>
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;
}