Skip to content

Commit 6281399

Browse files
authored
Make downward compatible’s
1 parent 2e9bb3a commit 6281399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsrc/webserver/QtHttpClientWrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ void QtHttpClientWrapper::onClientDataReceived (void)
169169
case RequestParsed: // a valid request has ben fully parsed
170170
{
171171
const auto& upgradeValue = m_currentRequest->getHeader(QtHttpHeader::Upgrade).toLower();
172-
if (upgradeValue.compare(QByteArrayLiteral("websocket"), Qt::CaseInsensitive) == 0) {
173-
172+
if (upgradeValue == "websocket")
173+
{
174174
if(m_websocketClient == Q_NULLPTR)
175175
{
176176
// disconnect this slot from socket for further requests

0 commit comments

Comments
 (0)