diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-12-16 18:59:46 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-12-16 19:10:33 +0100 |
commit | f132530ede32dccef7e122b2b2e33fd655b52354 (patch) | |
tree | f6a6291dc2ea1699bab76a7c1b9dc55077cf755f | |
parent | 983e93c3b160c62e60b1755d075e959d4685d949 (diff) |
Ignore unsupported Upgrade requests
As the server we're not under any obligation to switch protocols,
if the client requires it then they will disconnect.
Change-Id: Ic70bb56b0ac3b04c01f1121044d33fc1be85c733
Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
-rw-r--r-- | src/httpserver/qabstracthttpserver.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/httpserver/qabstracthttpserver.cpp b/src/httpserver/qabstracthttpserver.cpp index 5a6e1e5..5348318 100644 --- a/src/httpserver/qabstracthttpserver.cpp +++ b/src/httpserver/qabstracthttpserver.cpp @@ -116,9 +116,6 @@ void QAbstractHttpServerPrivate::handleReadyRead(QTcpSocket *socket, return; } #endif - qCWarning(lcHttpServer, "Upgrade to %s not supported", upgradeValue.constData()); - socket->disconnectFromHost(); - return; } socket->commitTransaction(); |