diff --git a/src/base/http/connection.cpp b/src/base/http/connection.cpp index 0c1ecc2e9..4a8709232 100644 --- a/src/base/http/connection.cpp +++ b/src/base/http/connection.cpp @@ -88,6 +88,7 @@ void Connection::read() void Connection::sendResponse(const Response &response) { m_socket->write(toByteArray(response)); + m_socket->close(); // TODO: remove when HTTP pipelining is supported } bool Connection::hasExpired(const qint64 timeout) const