http: replace service by url

This commit is contained in:
Seva authored and Adrien Béraud committed 2019-08-30 00:13:15 -04:00
1 parent fd7f644531
commit 70c92d6cea
3 files changed
+14 -21

No files matched your search

+2 -2
View File
@@ -860,8 +860,8 @@ DhtProxyServer::sendPushNotification(const std::string& token, Json::Value&& jso
if (pushServer_.empty())
return;
auto request = std::make_shared<http::Request>(io_context(), pushHostPort_.first,
pushHostPort_.second, logger_);
auto request = std::make_shared<http::Request>(io_context(), pushHostPort_.first, pushHostPort_.second,
httpsServer_ ? true : false, logger_);
auto reqid = request->id();
try {
request->set_target("/api/push");