send proper content-type on some PUT requests

This commit is contained in:
Martin Rotter 2022-01-28 08:22:26 +01:00
parent 50f437b46a
commit 5102a9bb00
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ void FeedlyNetwork::tagEntries(const QString& tag_id, const QStringList& msg_cus
output,
QNetworkAccessManager::Operation::PutOperation,
{ bearerHeader(bear),
{ "Content-Type", "application/json" } },
{ HTTP_HEADERS_CONTENT_TYPE, "application/json" } },
false,
{},
{},

View File

@ -215,7 +215,7 @@ bool OwnCloudNetworkFactory::createFeed(const QString& url, int parent_id, const
SETTING(Feeds::UpdateTimeout)).toInt(),
QJsonDocument(json).toJson(QJsonDocument::JsonFormat::Compact),
result_raw,
QNetworkAccessManager::Operation::PostOperation,
QNetworkAccessManager::Operation:: PostOperation,
headers,
false,
{},