Make downward compatible’s

This commit is contained in:
LordGrey 2024-12-28 22:47:07 +01:00 committed by GitHub
parent 2e9bb3aed6
commit 62813995a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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