diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-06-02 17:15:20 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-06-16 23:43:12 +0200 |
commit | 543a1185a804575b5646adc04d3a59c6291141b6 (patch) | |
tree | 2482bc565abb7921435cfcbc85954187e63419dc /tests/auto/qml/qqmlxmlhttprequest/data | |
parent | dd1cff389e20fa5760b6dc1f0d3db49c84d9aa18 (diff) |
Don't discard blank lines after the end of the headers
TestHTTPServer::wait()'s parsing of the expected request file
discarded blank lines, setting headers_done to true, regardless of how
many times it had done so already. Only do that once.
One expected content file duly needed a trailing blank line removed so
that it actually does match the content really sent by the QML, which
ended in a single newline.
Change-Id: Ic4c1b26398d8bf680823b383f163a62a5f1386be
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect index 55f7f7dceb..5b9f9299e8 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect @@ -15,4 +15,3 @@ Host: {{ServerHostUrl}} - } else if (m_method == QLatin1String("OPTIONS")) { + } else if (m_method == QLatin1String("OPTIONS") || + (m_method == QLatin1String("PATCH"))) { - |