From c35d0551fb25559a7cfe7178b6554f95d7b8bff4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 10 Dec 2020 11:59:59 -0500
Subject: [PATCH] server_account_manager: follow API for revoke device

Change-Id: Ia2e52ef9249577a579f7f7fec2f2c8c1f2d1138f
---
 src/jamidht/server_account_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jamidht/server_account_manager.cpp b/src/jamidht/server_account_manager.cpp
index 9d799e0ac0..9bb006148e 100644
--- a/src/jamidht/server_account_manager.cpp
+++ b/src/jamidht/server_account_manager.cpp
@@ -460,7 +460,7 @@ ServerAccountManager::revokeDevice(const std::string& password,
             cb(RevokeDeviceResult::ERROR_CREDENTIALS);
         return false;
     }
-    const std::string url = managerHostname_ + PATH_DEVICE + "?deviceId=" + device;
+    const std::string url = managerHostname_ + PATH_DEVICE + "/" + device;
     JAMI_WARN("[Revoke] Revoking device of %s at %s", info_->username.c_str(), url.c_str());
     auto request = std::make_shared<Request>(*Manager::instance().ioContext(), url, [cb, onAsync = onAsync_] (Json::Value json, const dht::http::Response& response){
         onAsync([=] (AccountManager& accountManager) {
-- 
GitLab