diff options
Diffstat (limited to 'include/tgbot/net')
-rw-r--r-- | include/tgbot/net/HttpParser.h | 1 | ||||
-rw-r--r-- | include/tgbot/net/HttpServer.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/tgbot/net/HttpParser.h b/include/tgbot/net/HttpParser.h index 83068fb..ec4c077 100644 --- a/include/tgbot/net/HttpParser.h +++ b/include/tgbot/net/HttpParser.h @@ -25,6 +25,7 @@ #include <string> #include <map> +#include <vector> #include "tgbot/net/Url.h" #include "tgbot/net/HttpReqArg.h" diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h index 888c0a8..164bd2b 100644 --- a/include/tgbot/net/HttpServer.h +++ b/include/tgbot/net/HttpServer.h @@ -80,7 +80,7 @@ protected: data.reserve(10240); socket->async_receive(data, [this]() { std::map<std::string, std::string> headers; - std::string body = HttpParser::parseResponse(data, headers); + std::string body = HttpParser::getInstance().parseResponse(data, headers); socket->async_send(_handler(body, headers)); }); } |