Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.3.0
-
None
Description
The WebSocket QML component added in Qt5.3.0 does not use the QNetworkAccessManager set on the QQmlEngine. I use QQmlEngine::setNetworkAccessManagerFactory() to set my own QNetworkAccessManager to be able to add extra headers to my network request from QML (especially User-Agent) and the WebSocket{} component does not use it.
I've dug in the source code of the component and it seems the method QWebSocketPrivate::createHandShakeRequest() which is in charge of opening the websocket connection does not allow for any of this and does not send a default User-Agent at all