Merge pull request #1615 from BarryThePenguin/master
Remove usage of ServicePointManager.ServerCertificateValidationCallback ...
This commit is contained in:
commit
dcfe85bed7
|
@ -34,7 +34,10 @@ namespace SparkleShare
|
|||
|
||||
public static string GetAvatar (string email, int size, string target_path)
|
||||
{
|
||||
#if __MonoCS__
|
||||
ServicePointManager.ServerCertificateValidationCallback = GetAvatarValidationCallBack;
|
||||
#endif
|
||||
|
||||
email = email.ToLower ();
|
||||
|
||||
if (skipped_avatars.Contains (email))
|
||||
|
|
|
@ -60,7 +60,11 @@ namespace SparkleShare {
|
|||
|
||||
public bool Accept (string public_key)
|
||||
{
|
||||
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
|
||||
#if __MonoCS__
|
||||
ServicePointManager.ServerCertificateValidationCallback = delegate {
|
||||
return true;
|
||||
};
|
||||
#endif
|
||||
|
||||
if (string.IsNullOrEmpty (AcceptUrl))
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue