Move JSON output functionality to socket.

This commit is contained in:
Nathan Osman
2016-10-14 14:14:06 -07:00
parent 4dd17ad4ea
commit f059e9bc66
5 changed files with 18 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ public Q_SLOTS:
void echo(QHttpSocket *socket) {
QJsonDocument document;
if (QObjectHandler::readJson(socket, document)) {
QObjectHandler::writeJson(socket, document);
socket->writeJson(document);
}
}
};