diff options
Diffstat (limited to 'test/System.Web.Http.Integration.Test/ContentNegotiation')
-rw-r--r-- | test/System.Web.Http.Integration.Test/ContentNegotiation/CustomFormatterTests.cs | 5 | ||||
-rw-r--r-- | test/System.Web.Http.Integration.Test/ContentNegotiation/HttpResponseReturnTests.cs | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/test/System.Web.Http.Integration.Test/ContentNegotiation/CustomFormatterTests.cs b/test/System.Web.Http.Integration.Test/ContentNegotiation/CustomFormatterTests.cs index 0f507178..943c9dd3 100644 --- a/test/System.Web.Http.Integration.Test/ContentNegotiation/CustomFormatterTests.cs +++ b/test/System.Web.Http.Integration.Test/ContentNegotiation/CustomFormatterTests.cs @@ -112,10 +112,7 @@ namespace System.Web.Http.ContentNegotiation private void SetupHost() { baseAddress = "http://localhost/"; - config = new HttpSelfHostConfiguration(baseAddress) - { - HostNameComparisonMode = HostNameComparisonMode.Exact - }; + config = new HttpSelfHostConfiguration(baseAddress); config.Routes.MapHttpRoute("Default", "{controller}/{action}", new { controller = "CustomFormatterTests", action = "EchoOrder" }); config.MessageHandlers.Add(new ConvertToStreamMessageHandler()); config.Formatters.Add(new PlainTextFormatterWithVersionInfo()); diff --git a/test/System.Web.Http.Integration.Test/ContentNegotiation/HttpResponseReturnTests.cs b/test/System.Web.Http.Integration.Test/ContentNegotiation/HttpResponseReturnTests.cs index 14fc1ae9..e44cee29 100644 --- a/test/System.Web.Http.Integration.Test/ContentNegotiation/HttpResponseReturnTests.cs +++ b/test/System.Web.Http.Integration.Test/ContentNegotiation/HttpResponseReturnTests.cs @@ -81,7 +81,6 @@ namespace System.Web.Http.ContentNegotiation baseAddress = "http://localhost/"; HttpSelfHostConfiguration config = new HttpSelfHostConfiguration(baseAddress); - config.HostNameComparisonMode = HostNameComparisonMode.Exact; config.Routes.MapHttpRoute("Default", "{controller}/{action}", new { controller = "HttpResponseReturn" }); config.MessageHandlers.Add(new ConvertToStreamMessageHandler()); |