Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit bdcdf29

Browse files
committed
#182 Revert workaround for HttpResponseMessage.ReasonPhrase.
1 parent faeedf1 commit bdcdf29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public async Task Response_ServerSendsCustomStatus_NoReasonPhrase()
9797
{
9898
HttpResponseMessage response = await SendRequestAsync(address);
9999
Assert.Equal(901, (int)response.StatusCode);
100-
Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721
100+
Assert.Equal(string.Empty, response.ReasonPhrase);
101101
Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
102102
}
103103
}

test/Microsoft.Net.Http.Server.FunctionalTests/ResponseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public async Task Response_ServerSendsCustomStatus_NoReasonPhrase()
8787

8888
HttpResponseMessage response = await responseTask;
8989
Assert.Equal(901, (int)response.StatusCode);
90-
Assert.True(string.IsNullOrEmpty(response.ReasonPhrase)); // https://github.com/dotnet/corefx/issues/6721
90+
Assert.Equal(string.Empty, response.ReasonPhrase);
9191
Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
9292
}
9393
}

0 commit comments

Comments
 (0)