[Question/Bug] EmptyBodyBehavior.Allow behavior #30690
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-model-binding
investigate
Milestone
Describe the bug
We have API (migrating from old asp.net mvc) with optional request body which gives us 400 response when no body provided (
content-length: 0
+content-type: application/json
).I've tried to use
EmptyBodyBehavior.Allow
feature but it still gives me 400 response so I suspect there is a difference between my understanding of empty body and one asp.net core has.Could you please clarify requrements for
empty body
in context ofEmptyBodyBehavior.Allow
in documentation or fix it if it is a bug.Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: