mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 22:48:15 +08:00

committed by
Marcelo Castagna

parent
a9cfc04aa9
commit
26ae9948d5
@ -39,6 +39,23 @@ namespace Ocelot.UnitTests.Responder
|
||||
header.ShouldBeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void should_ignore_content_if_null()
|
||||
{
|
||||
var httpContext = new DefaultHttpContext();
|
||||
var response = new DownstreamResponse(null, HttpStatusCode.OK,
|
||||
new List<KeyValuePair<string, IEnumerable<string>>>(), "some reason");
|
||||
|
||||
Should.NotThrow(() =>
|
||||
{
|
||||
_responder
|
||||
.SetResponseOnHttpContext(httpContext, response)
|
||||
.GetAwaiter()
|
||||
.GetResult()
|
||||
;
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void should_have_content_length()
|
||||
{
|
||||
|
Reference in New Issue
Block a user