diff options
-rw-r--r-- | src/net/CurlHttpClient.cpp | 2 | ||||
-rw-r--r-- | src/net/HttpParser.cpp | 6 |
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; } |