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

QNetworkReplyWasmImpl ignores custom verbs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.13.1, 5.14.0 Alpha
    • Component/s: Network: HTTP
    • Labels:
      None
    • Environment:
      - Firefox 67.0.4
      - Chromium 75.0.3770.100
      - Emscripten 1.38.32
      - Qt 5.13.0 for WebAssembly (self-compiled with default configure switches)
    • Platform/s:
      WebAssembly
    • Commits:
      0f92f2f35d55f2de545e8472c6b240c8fd0bb53f (qt/qtbase/5.13)

      Description

      When trying to send a custom network request via QNetworkAccessManager::sendCustomRequest, it fails with the following error message (stack-trace attached).

      SyntaxError: An invalid or illegal string was specified
      

      After digging around in the Qt sources, I found the problem. In QNetworkReplyWasmImplPrivate::doSendRequest, the method QNetworkReplyWasmImpl::methodName is called to get the HTTP-verb. However, that method completly ignores custom verbs (See https://code.qt.io/cgit/qt/qtbase.git/tree/src/network/access/qnetworkreplywasmimpl.cpp#n208)!

        Attachments

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

          Activity

            People

            • Assignee:
              lpotter Lorn Potter
              Reporter:
              SkyCoder Felix Barz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes