diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-12-06 23:39:14 +0300 |
---|---|---|
committer | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-12-06 23:39:14 +0300 |
commit | e89d523a7ac895f9bb724f3fa504f49c978aa4df (patch) | |
tree | 6506007a111068c218eb63d329a56e31519c7379 /include/tgbot/net | |
parent | 6fd3160feba7dc1228221ff4c8626cad48406d06 (diff) |
Some fixes. Closes #9, #10
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)); }); } |