Banning QNetworkAccessManager

laurent Montel montel at kde.org
Mon Feb 3 10:26:15 GMT 2020


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 at 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 






More information about the kde-core-devel mailing list