summaryrefslogtreecommitdiff
path: root/include/tgbot/net
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-12-06 23:39:14 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-12-06 23:39:14 +0300
commite89d523a7ac895f9bb724f3fa504f49c978aa4df (patch)
tree6506007a111068c218eb63d329a56e31519c7379 /include/tgbot/net
parent6fd3160feba7dc1228221ff4c8626cad48406d06 (diff)
Some fixes. Closes #9, #10
Diffstat (limited to 'include/tgbot/net')
-rw-r--r--include/tgbot/net/HttpParser.h1
-rw-r--r--include/tgbot/net/HttpServer.h2
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));
});
}