send proper content-type on some posts requests

This commit is contained in:
Martin Rotter 2022-01-28 08:21:38 +01:00
parent de2b314328
commit 50f437b46a
2 changed files with 4 additions and 2 deletions

View File

@ -156,7 +156,7 @@ void FeedlyNetwork::markers(const QString& action, const QStringList& msg_custom
output,
QNetworkAccessManager::Operation::PostOperation,
{ bearerHeader(bear),
{ "Content-Type", "application/json" } },
{ HTTP_HEADERS_CONTENT_TYPE, "application/json" } },
false,
{},
{},

View File

@ -507,7 +507,9 @@ QList<Message> GreaderNetwork::itemContents(ServiceRoot* root, const QList<QStri
input,
output_stream,
QNetworkAccessManager::Operation::PostOperation,
{ authHeader() },
{ authHeader(),
{ QSL(HTTP_HEADERS_CONTENT_TYPE).toLocal8Bit(),
QSL("application/x-www-form-urlencoded").toLocal8Bit() } },
false,
{},
{},