Fix compilation.

This commit is contained in:
Martin Rotter 2016-02-25 16:22:27 +01:00
parent c4b3a3a2c0
commit 24a1b51b67

View File

@ -161,7 +161,7 @@ NetworkResult NetworkFactory::uploadData(const QString &url, int timeout, const
if (forcefully_embed_basic_header) {
QString concatenated = username + ":" + password;
QByteArray data = concatenated.toLocal8Bit().toBase64();
QString headerData = "Basic " + data;
QString headerData = QString("Basic ") + data;
downloader.appendRawHeader("Authorization", headerData.toLocal8Bit());
}