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

Setting XMLHttpRequest raw header makes header name uppercase.

    XMLWordPrintable

Details

    • 6659fab8a4ca930398e96fbbecaa8aac8dc57f7d

    Description

      Javascript function called from QML is:

      function sendRequest(request) {
      var xhr2 = new XMLHttpRequest;
      xhr2.open("GET", request);

      if(xhr2.readyState == XMLHttpRequest.OPENED)

      { xhr2.setRequestHeader('Content-type','hipitihei'); }

      xhr2.send();
      }

      Sniffing network traffic shows the package has CONTENT-TYPE set to "hipitihei\r\n" as it should - though "Content-type" is curiously with all-uppercase.

      Attachments

        For Gerrit Dashboard: QTBUG-20472
        # Subject Branch Project Status CR V

        Activity

          People

            charles Charles Yin (closed Nokia identity) (Inactive)
            tarrasq Tapani Mattila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes