aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/banning.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/generated/banning.cpp')
-rw-r--r--jobs/generated/banning.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/jobs/generated/banning.cpp b/jobs/generated/banning.cpp
index d7708cc6..b7888062 100644
--- a/jobs/generated/banning.cpp
+++ b/jobs/generated/banning.cpp
@@ -23,6 +23,8 @@ BanJob::BanJob(const QString& roomId, const QString& userId, const QString& reas
if (!reason.isEmpty())
_data.insert("reason", toJson(reason));
setRequestData(_data);
+
+ addExpectedContentType("application/json");
}
UnbanJob::UnbanJob(const QString& roomId, const QString& userId)
@@ -34,5 +36,7 @@ UnbanJob::UnbanJob(const QString& roomId, const QString& userId)
QJsonObject _data;
_data.insert("user_id", toJson(userId));
setRequestData(_data);
+
+ addExpectedContentType("application/json");
}