aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/redaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/generated/redaction.cpp')
-rw-r--r--jobs/generated/redaction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/jobs/generated/redaction.cpp b/jobs/generated/redaction.cpp
index 9207f344..218e1aa6 100644
--- a/jobs/generated/redaction.cpp
+++ b/jobs/generated/redaction.cpp
@@ -28,6 +28,8 @@ RedactEventJob::RedactEventJob(const QString& roomId, const QString& eventId, co
if (!reason.isEmpty())
_data.insert("reason", toJson(reason));
setRequestData(_data);
+
+ addExpectedContentType("application/json");
}
RedactEventJob::~RedactEventJob() = default;