diff options
author | JellyBrick <shlee1503@naver.com> | 2018-06-08 16:41:28 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-06-08 16:41:28 +0900 |
commit | 093833a785cb25faf4afe3b5652c7598d778866f (patch) | |
tree | e91e25520fbefd6124b8950d7d1c2617fa20b6a1 /include/tgbot/net/TgWebhookServer.h | |
parent | 1aee6428aef1fe5179e149477bf48f73f32d3ada (diff) |
Resolve Travis-CI test
Diffstat (limited to 'include/tgbot/net/TgWebhookServer.h')
-rw-r--r-- | include/tgbot/net/TgWebhookServer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h index 9352e82..696d126 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, [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::unordered_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))); } |