From 1b69e2be2564de979dd481772f3f7d489e957c2f Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 3 Dec 2021 18:40:13 +0900 Subject: fix(HttpParser/CurlHttpClient): fix typo --- src/net/CurlHttpClient.cpp | 2 -- src/net/HttpParser.cpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 - #include #include 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& arg return result; } -string HttpParser::generateMultipartFormData(const vector& args, const string& bondary) const { +string HttpParser::generateMultipartFormData(const vector& 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& args, con result += item.value; result += "\r\n"; } - result += "--" + bondary + "--\r\n"; + result += "--" + boundary + "--\r\n"; return result; } -- cgit v1.2.3