From c9fc1ededb0e2c49f42083cf17280e960671e5f7 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sat, 10 Mar 2018 15:08:04 +0300 Subject: Fixes #54 --- include/tgbot/net/TgWebhookServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/net') 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> acceptor, const typename HttpServer::ServerHandler& handler) = delete; TgWebhookServer(std::shared_ptr> acceptor, const std::string& path, const EventHandler* eventHandler) : - HttpServer(acceptor, [this, eventHandler, &path](const std::string& data, const std::map& headers) -> std::string { + HttpServer(acceptor, [eventHandler, &path](const std::string& data, const std::map& headers) -> std::string { if (headers.at("method") == "POST" && headers.at("path") == path) { eventHandler->handleUpdate(TgTypeParser::getInstance().parseJsonAndGetUpdate(TgTypeParser::getInstance().parseJson(data))); } -- cgit v1.2.3