Content-Length wrong when IIndexHtmlTransformer transform html #624
|
Hello, I am using The exception is thrown in the file To resolve this issue, I set the this original code: var html = await transformer.Transform(html, frontend, ct);
await context.Response.WriteAsync(html ?? string.Empty, ct);
return;my fix: var html = await transformer.Transform(html, frontend, ct) ?? string.Empty;
context.Response.Headers.ContentLength = html.Length;
await context.Response.WriteAsync(html, ct);I would like contributing, if it's possible. |
Replies: 2 comments 1 reply
|
Thank you for reporting this. I've put it on the backlog to be picked up soon. We don't take PR's to our products, but with your clear issue description the fix would be straigtforward. |
|
Hi @julien-vandenbussche, we've just released Duende.Bff v4.3.0 which fixes this issue. Thanks again for reporting! |
Hi @julien-vandenbussche, we've just released Duende.Bff v4.3.0 which fixes this issue. Thanks again for reporting!