From 3d3705027e282c2f4ff39eb556f2ab600b127a26 Mon Sep 17 00:00:00 2001 From: Kurt Pattyn Date: Thu, 15 Aug 2013 14:40:42 +0200 Subject: [PATCH] Added comment to fixed string indicating it is a constant coming from the RFC --- source/handshakeresponse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/handshakeresponse.cpp b/source/handshakeresponse.cpp index fbbe56d..6299f33 100644 --- a/source/handshakeresponse.cpp +++ b/source/handshakeresponse.cpp @@ -45,7 +45,7 @@ QString HandshakeResponse::getAcceptedProtocol() const QString HandshakeResponse::calculateAcceptKey(const QString &key) const { - QString tmpKey = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; + QString tmpKey = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; //the UID comes from RFC6455 QByteArray hash = QCryptographicHash::hash(tmpKey.toLatin1(), QCryptographicHash::Sha1); return QString(hash.toBase64()); } -- 2.7.4