diff --git a/src/network/httpserver.cpp b/src/network/httpserver.cpp index 235e073..b0368eb 100644 --- a/src/network/httpserver.cpp +++ b/src/network/httpserver.cpp @@ -89,7 +89,6 @@ void HttpServer::onRead() { // Respond with 200 QByteArray block; - QDataStream out(&block, QIODevice::WriteOnly); // http payload message body QByteArray content; @@ -111,9 +110,7 @@ void HttpServer::onRead() { response += "Content-Length: " + QString::number(content.length()) + "\n"; response += "\n" + content; - out << response.toUtf8(); - - socket->write(block); + socket->write(response.toUtf8()); socket->waitForBytesWritten(); socket->disconnectFromHost();