QTfrontend/ui/widget/feedbackdialog.cpp
changeset 13193 16b375b21af1
parent 12905 a9e4e8fa852c
parent 12902 fc47fc4af6bd
child 13405 6476721e1a38
--- a/QTfrontend/ui/widget/feedbackdialog.cpp	Tue Mar 13 23:07:58 2018 +0100
+++ b/QTfrontend/ui/widget/feedbackdialog.cpp	Tue Mar 13 23:19:24 2018 +0100
@@ -20,7 +20,7 @@
 #include <QLineEdit>
 #include <QTextBrowser>
 #include <QLabel>
-#include <QHttp>
+#include <QNetworkAccessManager>
 #include <QSysInfo>
 #include <QDebug>
 #include <QBuffer>
@@ -474,7 +474,7 @@
             this, SLOT(finishedSlot(QNetworkReply*)));
 
     QNetworkRequest header(QUrl("https://hedgewars.org/feedback/?submit"));
-    header.setRawHeader("Content-Length", QString::number(body.size()).toAscii());
+    header.setRawHeader("Content-Length", QString::number(body.size()).toLatin1());
     header.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
 
     nam->post(header, body);