diff options
Diffstat (limited to 'test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs')
-rw-r--r-- | test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs b/test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs index 89e334a3..bfff7d29 100644 --- a/test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs +++ b/test/System.Web.Http.Integration.Test/ModelBinding/HttpContentBindingTests.cs @@ -4,6 +4,7 @@ using System.Net; using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; +using System.ServiceModel; using System.Web.Http.SelfHost; using System.Web.Http.Util; using Microsoft.TestCommon; @@ -52,6 +53,7 @@ namespace System.Web.Http.ModelBinding baseAddress = "http://localhost/"; HttpSelfHostConfiguration config = new HttpSelfHostConfiguration(baseAddress); + config.HostNameComparisonMode = HostNameComparisonMode.Exact; config.Routes.MapHttpRoute("Default", "{controller}/{action}", new { controller = "HttpContentBinding", action = "HandleMessage" }); config.MessageHandlers.Add(new ConvertToStreamMessageHandler()); |