-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0
-
None
-
503a1353dcf23f8a5fcb8a2c79d55f707e75cf33
When connect to an wss socked, QWebSocket requestUrl().toString() returns always ws. But in this case it must be wss.
Sample:
from http://doc.qt.io/qt-5/qtwebsockets-sslechoserver-sslechoserver-cpp.html
change
qDebug() << "Client connected:" << pSocket->peerName() << pSocket->origin();
to
qDebug() << "Client connected:" << pSocket->peerName() << pSocket->origin();
qDebug()<< pSocket->requestUrl().toString();
The result will be:
"ws://localhost:1234/"
instant of
"wss://localhost:1234/"