diff options
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect index 55f7f7dceb..d6ff9854a5 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect @@ -1,13 +1,13 @@ PATCH /qqmlxmlhttprequest.cpp HTTP/1.1 -Accept-Language: en-US -If-Match: "ETagNumber" -Content-Type: application/example -Content-Length: 247 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +if-match: "ETagNumber" +content-type: application/example +content-length: 247 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} --- a/qqmlxmlhttprequest.cpp +++ b/qqmlxmlhttprequest.cpp @@ -15,4 +15,3 @@ Host: {{ServerHostUrl}} - } else if (m_method == QLatin1String("OPTIONS")) { + } else if (m_method == QLatin1String("OPTIONS") || + (m_method == QLatin1String("PATCH"))) { - |