Fix ssl-strict = ask.

This was introduced in b13f2aa6f0.
This commit is contained in:
Florian Bruhin 2016-01-13 15:54:25 +01:00
parent b13f2aa6f0
commit 6b7f9fad9e

View File

@ -209,7 +209,7 @@ class NetworkManager(QNetworkAccessManager):
is_rejected = set(errors).issubset(
self._rejected_ssl_errors[host_tpl])
if ssl_strict or is_rejected:
if (ssl_strict and ssl_strict != 'ask') or is_rejected:
return
elif is_accepted:
reply.ignoreSslErrors()