Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39565

Websocket component do not go through the QNetworkAccessManager set on the view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.3.0
    • WebSockets
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kurt.pattyn Kurt Pattyn
            koopajah Remi J.
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes