Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 19 files). Show all
Unified · Split
| @@ -107,6 +107,7 @@ void XMLHttpRequestClass::abort() { · 106 unmodified lines | ||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | void XMLHttpRequestClass::setRequestHeader(const QString& name, const QString& value) { |
| 110 | + _request.setHeader(QNetworkRequest::UserAgentHeader, HIGH_FIDELITY_USER_AGENT); | |
| 110 | 111 | _request.setRawHeader(QByteArray(name.toLatin1()), QByteArray(value.toLatin1())); |
| 111 | 112 | } |
| 112 | 113 | |