send proper content-type on some posts requests
This commit is contained in:
parent
de2b314328
commit
50f437b46a
@ -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,
|
||||
{},
|
||||
{},
|
||||
|
@ -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,
|
||||
{},
|
||||
{},
|
||||
|
Loading…
x
Reference in New Issue
Block a user