diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-13 14:23:46 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-13 16:29:50 +0200 |
commit | 55845602abf09bc5ccee2032a21b95b245d3cedd (patch) | |
tree | 6b5f37259a521480c5b1c0df3ff6d2af09b59249 /lib/jobs/basejob.cpp | |
parent | ab269f183fdc6f611559d69475543089088b4712 (diff) | |
download | libquotient-55845602abf09bc5ccee2032a21b95b245d3cedd.tar.gz libquotient-55845602abf09bc5ccee2032a21b95b245d3cedd.zip |
BaseJob: FollowRedirectsAttribute -> RedirectPolicyAttribute
The latter obsoleted the former since Qt 5.9, actually.
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r-- | lib/jobs/basejob.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 48c2996d..c27c6a89 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -288,7 +288,8 @@ void BaseJob::Private::sendRequest() req.setRawHeader("Authorization", QByteArray("Bearer ") + connection->accessToken()); req.setAttribute(QNetworkRequest::BackgroundRequestAttribute, inBackground); - req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); + req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, + QNetworkRequest::NoLessSafeRedirectPolicy); req.setMaximumRedirectsAllowed(10); req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); req.setAttribute( |