diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-04-20 14:32:32 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-09 15:34:11 +0200 |
commit | c3d73e8645f75830283ad0d4ddfff219bd86cf67 (patch) | |
tree | 1ecab74eff660702c4316de577b9ae8c8ce4cf76 /tests/auto/qml/qqmlxmlhttprequest | |
parent | d0a2f511f3fd8a736ddff74f984585b8909d1d8d (diff) |
Correct an inaccurate comment in XHR test-case for repeated headers
Setting the same header repeatedly appends values to the header, as
the test-cases' expected output indeed shows, so don't claim the last
setting over-writes all earlier ones. Reflow in the process.
Change-Id: Ib21d218e5f762c3842aa03d380ed795023e5434d
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader_caseInsensitive.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader_caseInsensitive.qml b/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader_caseInsensitive.qml index ebda3ba5e4..015682b5d5 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader_caseInsensitive.qml +++ b/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader_caseInsensitive.qml @@ -11,9 +11,8 @@ QtObject { x.open("GET", url); x.setRequestHeader("Test-header", "value"); - //Setting headers with just different cases - //will be treated as the same header, and accepted - //as the last setting. + // Setting headers differing only in case will treat them as one header, + // and the values are joined with a comma. x.setRequestHeader("Test-hEADEr2", "value"); x.setRequestHeader("Test-header2", "value2"); |