summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-09-29 11:08:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:43:41 -0700
commit8ce4692b5c8f1792bd4d3feae08698ab4583328b (patch)
tree47de1daeeb387317495073e182178aaa74177139
parente2aaa43d8c53289928e8d9cbc2cbad5e4518da29 (diff)
downloadsubsurface-8ce4692b5c8f1792bd4d3feae08698ab4583328b.tar.gz
[Facebook] Use QByteArray directly
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 83514f032..e7b84d1cb 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -201,8 +201,8 @@ void FacebookManager::sendDive()
data.append("\r\n");
data.append("--" + bound + "--\r\n"); //closing boundary according to rfc 1867
- request.setRawHeader(QString("Content-Type").toLocal8Bit(),QString("multipart/form-data; boundary=" + bound).toLocal8Bit());
- request.setRawHeader(QString("Content-Length").toLocal8Bit(), QString::number(data.length()).toLocal8Bit());
+ request.setRawHeader(QByteArray("Content-Type"),QString("multipart/form-data; boundary=" + bound).toLocal8Bit());
+ request.setRawHeader(QByteArray("Content-Length"), QString::number(data.length()).toLocal8Bit());
QNetworkReply *reply = am->post(request,data);
QEventLoop loop;