Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs')
-rw-r--r--test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs b/test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs
index 66475909..6d14212e 100644
--- a/test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs
+++ b/test/System.Web.Http.SelfHost.Test/Authentication/BasicOverHttpTest.cs
@@ -2,6 +2,7 @@
using System.Net;
using System.Net.Http;
+using System.ServiceModel;
using System.Web.Http.SelfHost;
using Microsoft.TestCommon;
@@ -39,6 +40,7 @@ namespace System.Web.Http
{
// Arrange
HttpSelfHostConfiguration config = new HttpSelfHostConfiguration(BaseAddress);
+ config.HostNameComparisonMode = HostNameComparisonMode.Exact;
config.Routes.MapHttpRoute("Default", "{controller}" + routeSuffix, new { controller = controllerName });
config.UserNamePasswordValidator = new CustomUsernamePasswordValidator();
config.MessageHandlers.Add(new CustomMessageHandler());