aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Transports/http/httpstreamreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Transports/http/httpstreamreader.cpp')
-rw-r--r--src/plugins/Transports/http/httpstreamreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Transports/http/httpstreamreader.cpp b/src/plugins/Transports/http/httpstreamreader.cpp
index be051a89b..861c17735 100644
--- a/src/plugins/Transports/http/httpstreamreader.cpp
+++ b/src/plugins/Transports/http/httpstreamreader.cpp
@@ -75,7 +75,7 @@ static size_t curl_header(void *data, size_t size, size_t nmemb,
}
else
{
- QString key = QString::fromLatin1(header.left(header.indexOf(":")).trimmed().toLower());
+ QString key = QString::fromLatin1(header.left(header.indexOf(":")).trimmed().toLower().constData());
QByteArray value = header.right(header.size() - header.indexOf(":") - 1).trimmed();
dl->stream()->header.insert(key, value);
qDebug("HttpStreamReader: key=%s, value=%s",qPrintable(key), value.constData());