return line;
}
-//called for a server handshake response
+//called on the client for a server handshake response
/*!
\internal
*/
QString protocol = headers.value("Sec-WebSocket-Protocol", "");
QString version = headers.value("Sec-WebSocket-Version", "");
- if (httpStatusCode == 101) //HTTP/1.1 101 Switching Protocols
+ if (httpStatusCode == 101) //HTTP/x.y 101 Switching Protocols
{
bool conversionOk = false;
float version = httpProtocol.midRef(5).toFloat(&conversionOk);