From bdcdf29ade2be6242038491b2e77d813796a1878 Mon Sep 17 00:00:00 2001 From: Chris R Date: Wed, 30 Mar 2016 16:03:04 -0700 Subject: [PATCH] #182 Revert workaround for HttpResponseMessage.ReasonPhrase. --- .../ResponseTests.cs | 2 +- test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseTests.cs b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseTests.cs index 7203688118..ad63957536 100644 --- a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseTests.cs +++ b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseTests.cs @@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Server.WebListener { HttpResponseMessage response = await SendRequestAsync(address); Assert.Equal(901, (int)response.StatusCode); - Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721 + Assert.Equal(string.Empty, response.ReasonPhrase); Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); } } diff --git a/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs b/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs index e2266b330f..4e46f19ef7 100644 --- a/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs +++ b/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs @@ -87,7 +87,7 @@ namespace Microsoft.Net.Http.Server HttpResponseMessage response = await responseTask; Assert.Equal(901, (int)response.StatusCode); - Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721 + Assert.Equal(string.Empty, response.ReasonPhrase); Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); } }