Override IHttpRequestBodyDetectionFeature.CanHaveBodyOverride value in .NET Core Web API
In this post, I showed how to modify the request body to add an additional field using middleware. It would also add a request body if not provided. However, if you send a request without request body, you would get or if the request has Content-Type in the headers but without request body, you would … [Read more…]