From 7169338dedbf0184da4c971e7cecb6be13b1d129 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 5 Jan 2018 11:01:18 +0900 Subject: jobs/generated: Use BaseJob::addExpectedContentType() --- jobs/generated/redaction.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jobs/generated/redaction.cpp') 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; -- cgit v1.2.3