[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-frameworks-devel
Subject: Re: Banning QNetworkAccessManager
From: laurent Montel <montel () kde ! org>
Date: 2020-02-03 10:26:15
Message-ID: 5334395.DvuYhMxLoT () linux-zym0
[Download RAW message or body]
Le lundi 3 février 2020, 10:49:10 CET David Edmundson a écrit :
> I updated:
>
> https://community.kde.org/Policies/API_to_Avoid
>
> Which had no mention of this.
>
> David
I think that you made an error
"networkAccessManger->setAttribute(QNetworkRequest::FollowRedirectsAttribute,
true); "
Doesn't exist it's a enum from QnetworkRequest::RedirectPolicy
And FollowRedirectsAttribute is old value
It seems that we need to use QnetworkRequest::NoLessSafeRedirectPolicy
directly no ?
--
Laurent Montel | laurent.montel@kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53,
www.kdab.fr KDAB - The Qt, C++ and OpenGL Experts - Platform-independent
software solutions
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic