History

enabled qnetworkrequest redirects everywhere I could find them

SamGondelman committed 10 years ago

Commit 9d447d41 parent 20deae316 files · +21 −2Browse files

Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 16 files). Show all

Unified · Split

libraries/script-engine/src/XMLHttpRequestClass.cpp+1−0
@@ -45,6 +45,7 @@ XMLHttpRequestClass::XMLHttpRequestClass(QScriptEngine* engine) : · 44 unmodified lines
4545 _timer(this),
4646 _numRedirects(0) {
4747
48+ _request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
4849 _timer.setSingleShot(true);
4950 }
5051