Make this build on the MOBILE profile
authorMiguel de Icaza <miguel@gnome.org>
Fri, 21 Oct 2011 15:49:49 +0000 (11:49 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 21 Oct 2011 15:50:17 +0000 (11:50 -0400)
mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs

index e6bdf00c43a6fb7b3da1e77a26a02acc50247313..cf3b376a604f8eaf1179bdf4c0af2552896b3230 100644 (file)
@@ -163,9 +163,10 @@ namespace System.ServiceModel.Channels
                                if (hp.SuppressEntityBody)
                                        suppressEntityBody = true;
                        }
-
+#if !NET_2_1
                        if (source.ClientCredentials.ClientCertificate.Certificate != null) 
                                ((HttpWebRequest)web_request).ClientCertificates.Add (source.ClientCredentials.ClientCertificate.Certificate);
+#endif
 
                        if (!suppressEntityBody && String.Compare (web_request.Method, "GET", StringComparison.OrdinalIgnoreCase) != 0) {
                                MemoryStream buffer = new MemoryStream ();