aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-07-27 09:57:37 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-28 07:12:34 +0200
commit14496b18a67982ee25ed43aed6b6bcd7d6fa23ee (patch)
treec52c7ab1639a691308da90e3e628d31e14559186 /src/declarative
parent44e58a337a9c314d4542ee6f2acc571aba877ccb (diff)
Fix XmlHttpRequest setHeader bug
Setting XMLHttpRequest raw header makes header name uppercase, the name should be kept as it is. Task-number:QTBUG-20472 Change-Id: I8aa8988d6d18d71ee71a7d2f9c3246b20f006f3c Reviewed-on: http://codereview.qt.nokia.com/2225 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativexmlhttprequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativexmlhttprequest.cpp b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
index 5a7aa0a003..194a60f2d3 100644
--- a/src/declarative/qml/qdeclarativexmlhttprequest.cpp
+++ b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
@@ -1601,7 +1601,7 @@ static v8::Handle<v8::Value> qmlxmlhttprequest_setRequestHeader(const v8::Argume
nameUpper.startsWith(QLatin1String("SEC-")))
return v8::Undefined();
- r->addHeader(nameUpper, value);
+ r->addHeader(name, value);
return v8::Undefined();
}