From 96e0bed4c8ff4b36f6fe2df025ab17920ecabef7 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sun, 16 Oct 2011 11:28:59 -0400 Subject: [PATCH] Fix bug 1203, relaxes the test for the protocol to allow https endpoints --- .../System.ServiceModel.Channels/HttpChannelFactory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs index 55ab5553b8d..0fe6bbfd0d5 100644 --- a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs +++ b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs @@ -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) && -- 2.25.1