diff --git a/src/jamidht/server_account_manager.cpp b/src/jamidht/server_account_manager.cpp index 9d799e0ac00318ad56d093a9e27d1d1d5d1074fb..9bb006148e231bec5f507b10122eca93fd7e29d0 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) {