From f9f49711e6356360c04bbe43baacc7786dee22c8 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Sun, 6 May 2018 12:03:48 +0200 Subject: [PATCH] Fixed crash with QStringBuilder --- streamingwebserver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/streamingwebserver.cpp b/streamingwebserver.cpp index 1acc9b3..809404a 100644 --- a/streamingwebserver.cpp +++ b/streamingwebserver.cpp @@ -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;