aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml')
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml
deleted file mode 100644
index e03f73431a..0000000000
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/setRequestHeader_caseInsensitive.qml
+++ /dev/null
@@ -1,30 +0,0 @@
-import QtQuick 2.0
-
-QtObject {
- property string url
-
- property bool dataOK: false
-
- Component.onCompleted: {
- var x = new XMLHttpRequest;
-
- x.open("GET", url);
- x.setRequestHeader("Accept-Language","en-US");
-
- x.setRequestHeader("Test-header", "value");
- //Setting headers with just different cases
- //will be treated as the same header, and accepted
- //as the last setting.
- x.setRequestHeader("Test-hEADEr2", "value");
- x.setRequestHeader("Test-header2", "value2");
-
- // Test to the end
- x.onreadystatechange = function() {
- if (x.readyState == XMLHttpRequest.DONE) {
- dataOK = (x.responseText == "QML Rocks!\n");
- }
- }
-
- x.send();
- }
-}