Skip to content

Commit b0d3753

Browse files
committed
Merge pull request #123 from sbezludny/master
Fixed #85
2 parents 4eba417 + dbb1778 commit b0d3753

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/WebApi.OutputCache.V2/CacheOutputAttribute.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ private async Task OnActionExecuted(HttpActionExecutedContext actionExecutedCont
201201
//ConfigureAwait false to avoid deadlocks
202202
var content = await actionExecutedContext.Response.Content.ReadAsByteArrayAsync().ConfigureAwait(false);
203203

204+
actionExecutedContext.Response.Content.Headers.Remove("Content-Length");
204205

205206
_webApiCache.Add(baseKey, string.Empty, cacheTime.AbsoluteExpiration);
206207
_webApiCache.Add(cachekey, content, cacheTime.AbsoluteExpiration, baseKey);

0 commit comments

Comments
 (0)