Skip to content

Commit b916a79

Browse files
author
Daniil Grudzinsky
committed
add not existing header to tests to ensure cache works as expected if specified custom header is not set
1 parent 398883c commit b916a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/WebApi.OutputCache.V2.Tests/TestControllers/CustomHeadersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public IHttpActionResult Cache_Multiply_Custom_Headers()
7373
}
7474

7575
[HttpGet]
76-
[CacheOutput(ClientTimeSpan = 100, ServerTimeSpan = 100, IncludeCustomHeaders = "Content-Encoding")]
76+
[CacheOutput(ClientTimeSpan = 100, ServerTimeSpan = 100, IncludeCustomHeaders = "Content-Encoding,NotExistingHeader")]
7777
public IHttpActionResult Cache_Part_Of_Custom_Headers()
7878
{
7979
var result = new CustomHeadersContent<string>("test", this)

0 commit comments

Comments
 (0)