Make "https" scheme only when Transport security mode is ON
authorstukselbax <stukselbax@gmail.com>
Mon, 26 Oct 2015 10:29:35 +0000 (13:29 +0300)
committerstukselbax <stukselbax@gmail.com>
Mon, 26 Oct 2015 10:29:35 +0000 (13:29 +0300)
commitfccd4b01a7dac5a8e7abab5cf2fa55e4f042be13
tree07851d5158b9f329bb631b2b917423154bded465
parent9f333557cc4d50bd25a423ceb835680b55f416c0
Make "https" scheme only when Transport security mode is ON

The behavior of the WebHttpBinding in case of SecurityMode ==
WebHttpSecurityMode.TransportCredentialOnly must use the http scheme, in
order to allow authentication of the client based on the standard HTTP
headers, like WWW-Authenticate: Scheme realm="" and so on. This behavior
is the default in .net;
mcs/class/System.ServiceModel.Web/System.ServiceModel/WebHttpBinding.cs
mcs/class/System.ServiceModel.Web/Test/System.ServiceModel/WebHttpBindingTest.cs