mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:33:23 +00:00
[Facebook] Use QByteArray directly
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e2aaa43d8c
commit
8ce4692b5c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue