We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9bb3a commit 6281399Copy full SHA for 6281399
libsrc/webserver/QtHttpClientWrapper.cpp
@@ -169,8 +169,8 @@ void QtHttpClientWrapper::onClientDataReceived (void)
169
case RequestParsed: // a valid request has ben fully parsed
170
{
171
const auto& upgradeValue = m_currentRequest->getHeader(QtHttpHeader::Upgrade).toLower();
172
- if (upgradeValue.compare(QByteArrayLiteral("websocket"), Qt::CaseInsensitive) == 0) {
173
-
+ if (upgradeValue == "websocket")
+ {
174
if(m_websocketClient == Q_NULLPTR)
175
176
// disconnect this slot from socket for further requests
0 commit comments