diff options
Diffstat (limited to 'jobs/generated/kicking.cpp')
-rw-r--r-- | jobs/generated/kicking.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp index bf94fe59..bf2490b7 100644 --- a/jobs/generated/kicking.cpp +++ b/jobs/generated/kicking.cpp @@ -14,16 +14,12 @@ static const auto basePath = QStringLiteral("/_matrix/client/r0"); KickJob::KickJob(const QString& roomId, const QString& userId, const QString& reason) : BaseJob(HttpVerb::Post, "KickJob", - basePath % "/rooms/" % roomId % "/kick", - Query { } - ) + basePath % "/rooms/" % roomId % "/kick") { QJsonObject _data; _data.insert("user_id", toJson(userId)); if (!reason.isEmpty()) _data.insert("reason", toJson(reason)); setRequestData(_data); - - addExpectedContentType("application/json"); } |