From 64174491dac84c559db5c48ed850177fa3eb4da0 Mon Sep 17 00:00:00 2001 From: jellybrick Date: Sat, 14 Mar 2020 23:21:30 +0900 Subject: Fix #127, #128 & Code quality improvements It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'. --- include/tgbot/net/HttpParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/net/HttpParser.h') diff --git a/include/tgbot/net/HttpParser.h b/include/tgbot/net/HttpParser.h index 3f1095b..fabeacf 100644 --- a/include/tgbot/net/HttpParser.h +++ b/include/tgbot/net/HttpParser.h @@ -14,7 +14,7 @@ class TGBOT_API HttpParser { public: std::string generateRequest(const Url& url, const std::vector& args, bool isKeepAlive = false) const; - std::string generateMultipartFormData(const std::vector& args, const std::string& bondary) const; + std::string generateMultipartFormData(const std::vector& args, const std::string& boundary) const; std::string generateMultipartBoundary(const std::vector& args) const; std::string generateWwwFormUrlencoded(const std::vector& args) const; std::string generateResponse(const std::string& data, const std::string& mimeType, unsigned short statusCode, const std::string& statusStr, bool isKeepAlive) const; -- cgit v1.2.3