summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpServer.h
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/HttpServer.h
parent6fd3160feba7dc1228221ff4c8626cad48406d06 (diff)
Some fixes. Closes #9, #10
Diffstat (limited to 'include/tgbot/net/HttpServer.h')
-rw-r--r--include/tgbot/net/HttpServer.h2
1 files changed, 1 insertions, 1 deletions
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));
});
}