Commit bc1b6ac5 authored by Aleksey Lysenko's avatar Aleksey Lysenko Committed by Kai Koehne
Browse files

Remove unneeded CRLF ending from status line


No need to keep the CRLF ending of status line.

Task-number: QTBUG-67424
Change-Id: I7f94c7bedf40412b338c56cfe59751f6a9e78f0a
Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
Showing with 1 addition and 1 deletion
......@@ -965,7 +965,7 @@ void QWebSocketPrivate::processHandshake(QTcpSocket *pSocket)
case ReadingStatusState:
if (!pSocket->canReadLine())
return;
m_statusLine = pSocket->readLine();
m_statusLine = pSocket->readLine().trimmed();
if (Q_UNLIKELY(!parseStatusLine(m_statusLine, &m_httpMajorVersion, &m_httpMinorVersion, &m_httpStatusCode, &m_httpStatusMessage))) {
errorDescription = QWebSocket::tr("Invalid statusline in response: %1.").arg(QString::fromLatin1(m_statusLine));
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment