Skip to content

Commit e048795

Browse files
author
George
committed
Ensure headers are not empty.
1 parent 2fbbbd7 commit e048795

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/Middleware/CompressionHandlerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public async Task CompressionHandler_should_keep_headers_after_decompression()
128128
string responseContentString = await compressedResponse.Content.ReadAsStringAsync();
129129

130130
// Ensure that headers in the compressedResponse are the same as in the original, expected response.
131+
Assert.NotEmpty(compressedResponse.Headers);
131132
Assert.NotEmpty(compressedResponse.Content.Headers);
132133
Assert.Equal(httpResponse.Headers, compressedResponse.Headers, new HttpHeaderComparer());
133134
Assert.Equal(httpResponse.Content.Headers, compressedResponse.Content.Headers, new HttpHeaderComparer());

0 commit comments

Comments
 (0)