Jelajahi Sumber

[System]: Disallow "https" proxies in ServicePointManager.FindServicePoint().

(cherry picked from commit e734cd8b598a0c2d036db66c049f7b7c1f5fda2c)
Martin Baulig 10 tahun lalu
induk
melakukan
a429d91690
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      mcs/class/System/System.Net/ServicePointManager.cs

+ 1 - 1
mcs/class/System/System.Net/ServicePointManager.cs

@@ -328,7 +328,7 @@ namespace System.Net
 				usesProxy = true;
 				bool isSecure = address.Scheme == "https";
 				address = proxy.GetProxy (address);
-				if (address.Scheme != "http" && !isSecure)
+				if (address.Scheme != "http")
 					throw new NotSupportedException ("Proxy scheme not supported.");
 
 				if (isSecure && address.Scheme == "http")