-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with forwarding body of post method over OCELOT to asp.net API #792
Comments
I encountered the same issue. This happens when other middleware triggers request buffering before Ocelot. |
Any update on this topic, I encountered the same issue. This happens when other middleware triggers request buffering before Ocelot. HttpContext.Request.EnableBuffering() <= call this one in the middleware before Ocelot process request cause issue |
@forgotten-warrior |
@serjebulavsky |
Thank you @osovitskiy, will have a look |
@osovitskiy I used your workaround for some time, and it worked.
|
@CoviloMilos |
Expected Behavior / New Feature
I am sending post method with body (Content-Type application/json) to asp.net Web API over Ocelot. Web API is working fine when I am testing it by sending request directly to him.
Actual Behavior / Motivation for New Feature
My request is received by asp.net Web API but with body which is null.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: