Skip to content

Commit

Permalink
FIX: Soap service endpoint doesn’t return a valid content length (#2102)
Browse files Browse the repository at this point in the history
When ExpectAndReturnOldDotNetAssemblyReferences=true in application.json 
Co-authored-by: Václav Urbánek <vaclav.urbanek@advantages.cz>
  • Loading branch information
urbanekv authored and Vaclav Urbanek committed Oct 26, 2023
1 parent 31018e5 commit 5c3347d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public async Task Invoke(HttpContext context)
await next(context);
using (var responseStream = await FixAssemblyReferencesInResponse(context.Response))
{
context.Response.Headers.ContentLength = null;
await responseStream.CopyToAsync(originalBodyStream);
}
}
Expand Down

0 comments on commit 5c3347d

Please sign in to comment.