In C#, when using Ocelot, the ContentLength is 0 when forwarding data to downstream services.
Tell969696 opened this issue · comments
Expected Behavior / New Feature
Using Ocelot version 18.0, in an ABP framework environment, the content length of front-end access is normal when using app.Use
. However, when inspecting the information forwarded by Ocelot in a DelegatingHandler
, the content length is 0.
Actual Behavior / Motivation for New Feature
Steps to Reproduce the Problem
Specifications
- Version:
- Platform:
- Subsystem:
Use POST
verb to forward body successfully.
But I believe it is possible with GET
too.
There is problem with multiplexing aka Request Aggregation feature where we have the problem with forwarding body. But the problem is already addressed in PR #2050 and merged as commit 233f87a.
So, our recommendation is migration to version 23.3 which will be released in a week.
Using Ocelot version 18.0
This is outdated version! Migrate to latest version 23.2.2 please!
P.S.
If you have custom overrides of the default Ocelot implementations then we are not responsible for the stability.
Overrides such as: custom delegating handlers, custom middlewares, custom replaced services in DI.
So, we can't help you!