Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
4.7.4
-
None
-
MeeGo/Harmattan on arm hardware.
Description
Javascript function called from QML is:
function sendRequest(request) {
var xhr2 = new XMLHttpRequest;
xhr2.open("GET", request);
if(xhr2.readyState == XMLHttpRequest.OPENED)
{ xhr2.setRequestHeader('User-Agent','MyClient'); } xhr2.send();
}
Sniffing network traffic shows User-Agent stays at "Mozilla/5.0 (Nokia; Qt; MeeGo)\r\n".
Implementing a custom QNetworkAccessManager and setting the header there solves the problem, but it should be doable also like described above.