Fix bug 1203, relaxes the test for the protocol to allow https endpoints
authorMiguel de Icaza <miguel@gnome.org>
Sun, 16 Oct 2011 15:28:59 +0000 (11:28 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 16 Oct 2011 15:45:58 +0000 (11:45 -0400)
mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs

index 55ab5553b8d5d15106cb7e57191e5e682bf7504d..0fe6bbfd0d5f0d8c764b6e66b3c3eb7aeb904499 100644 (file)
@@ -69,7 +69,8 @@ namespace System.ServiceModel.Channels
                {
                        ThrowIfDisposedOrNotOpen ();
 
-                       if (Transport.Scheme != address.Uri.Scheme)
+                       //if (Transport.Scheme != address.Uri.Scheme)
+                       if (!address.Uri.Scheme.StartsWith(Transport.Scheme))
                                throw new ArgumentException (String.Format ("Argument EndpointAddress has unsupported URI scheme: {0}", address.Uri.Scheme));
 
                        if (MessageEncoder.MessageVersion.Addressing.Equals (AddressingVersion.None) &&