From 62813995a4d00b82d2a330ea39bddeceaef305eb Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Sat, 28 Dec 2024 22:47:07 +0100 Subject: [PATCH] =?UTF-8?q?Make=20downward=20compatible=E2=80=99s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsrc/webserver/QtHttpClientWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/webserver/QtHttpClientWrapper.cpp b/libsrc/webserver/QtHttpClientWrapper.cpp index b4182e63..62a3d0da 100644 --- a/libsrc/webserver/QtHttpClientWrapper.cpp +++ b/libsrc/webserver/QtHttpClientWrapper.cpp @@ -169,8 +169,8 @@ void QtHttpClientWrapper::onClientDataReceived (void) case RequestParsed: // a valid request has ben fully parsed { const auto& upgradeValue = m_currentRequest->getHeader(QtHttpHeader::Upgrade).toLower(); - if (upgradeValue.compare(QByteArrayLiteral("websocket"), Qt::CaseInsensitive) == 0) { - + if (upgradeValue == "websocket") + { if(m_websocketClient == Q_NULLPTR) { // disconnect this slot from socket for further requests