diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-05 11:01:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-09 11:54:40 +0900 |
commit | 7169338dedbf0184da4c971e7cecb6be13b1d129 (patch) | |
tree | 6d6fcecf323cd8f39c24349abd139a2a28fa4c48 /jobs/generated/profile.cpp | |
parent | b142117d78a2a4ce21e818c62cb7a10cff80af0d (diff) | |
download | libquotient-7169338dedbf0184da4c971e7cecb6be13b1d129.tar.gz libquotient-7169338dedbf0184da4c971e7cecb6be13b1d129.zip |
jobs/generated: Use BaseJob::addExpectedContentType()
Diffstat (limited to 'jobs/generated/profile.cpp')
-rw-r--r-- | jobs/generated/profile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jobs/generated/profile.cpp b/jobs/generated/profile.cpp index 27bab0b8..b30b9a36 100644 --- a/jobs/generated/profile.cpp +++ b/jobs/generated/profile.cpp @@ -22,6 +22,8 @@ SetDisplayNameJob::SetDisplayNameJob(const QString& userId, const QString& displ if (!displayname.isEmpty()) _data.insert("displayname", toJson(displayname)); setRequestData(_data); + + addExpectedContentType("application/json"); } class GetDisplayNameJob::Private @@ -61,6 +63,8 @@ SetAvatarUrlJob::SetAvatarUrlJob(const QString& userId, const QString& avatarUrl if (!avatarUrl.isEmpty()) _data.insert("avatar_url", toJson(avatarUrl)); setRequestData(_data); + + addExpectedContentType("application/json"); } class GetAvatarUrlJob::Private |