Fixed crash with QStringBuilder

This commit is contained in:
0xFEEDC0DE64
2018-05-06 12:03:48 +02:00
parent 38320a950f
commit f9f49711e6

View File

@@ -19,9 +19,9 @@ void StreamingWebserver::handleRequest(HttpClientConnection *connection, const H
response.headers.insert(QStringLiteral("Server"), QStringLiteral("Hatschi Server 1.0"));
response.headers.insert(QStringLiteral("Content-Type"), QStringLiteral("text/html"));
auto path = QStringLiteral(":/StreamingWebserver/htdocs") %
QDir::separator() %
(request.path == QStringLiteral("/") ? QStringLiteral("index.html") : request.path);
QString path = QStringLiteral(":/StreamingWebserver/htdocs") %
QDir::separator() %
(request.path == QStringLiteral("/") ? QStringLiteral("index.html") : request.path);
qDebug() << request.path << path;