Content-Length wrong when IIndexHtmlTransformer transform html #624
Unanswered
julien-vandenbussche
asked this question in
BFF
Replies: 1 comment
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am using
AddFrontendsfor my application.In my code, I use
WithProxiedStaticAssetsand define a customIIndexHtmlTransformer. When running the application, I encounter the following exception:The exception is thrown in the file
bff/src/Bff/DynamicFrontends/Internal/StaticFilesHttpClient.cs(line 109) because theContent-Lengthheader is set at line 94 or 98 (identical instructions within a foreach loop).To resolve this issue, I set the
Content-Lengthheader after the call to theIIndexHtmlTransformer's transformation method.this original code:
my fix:
I would like contributing, if it's possible.
DuendeSoftware/products@6a22a61
All reactions