summaryrefslogtreecommitdiff
path: root/include/tgbot/net
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-03-10 15:08:04 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-03-10 15:08:04 +0300
commitc9fc1ededb0e2c49f42083cf17280e960671e5f7 (patch)
treeda8d869a0a3744ee94308778c46924735986644f /include/tgbot/net
parent5e6d5792b00da4064a030de6ff48b64204e1036d (diff)
Fixes #54
Diffstat (limited to 'include/tgbot/net')
-rw-r--r--include/tgbot/net/TgWebhookServer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h
index d085331..9352e82 100644
--- a/include/tgbot/net/TgWebhookServer.h
+++ b/include/tgbot/net/TgWebhookServer.h
@@ -37,7 +37,7 @@ public:
TgWebhookServer(std::shared_ptr<boost::asio::basic_socket_acceptor<Protocol>> acceptor, const typename HttpServer<Protocol>::ServerHandler& handler) = delete;
TgWebhookServer(std::shared_ptr<boost::asio::basic_socket_acceptor<Protocol>> acceptor, const std::string& path, const EventHandler* eventHandler) :
- HttpServer<Protocol>(acceptor, [this, eventHandler, &path](const std::string& data, const std::map<std::string, std::string>& headers) -> std::string {
+ HttpServer<Protocol>(acceptor, [eventHandler, &path](const std::string& data, const std::map<std::string, std::string>& headers) -> std::string {
if (headers.at("method") == "POST" && headers.at("path") == path) {
eventHandler->handleUpdate(TgTypeParser::getInstance().parseJsonAndGetUpdate(TgTypeParser::getInstance().parseJson(data)));
}