You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoint filter pipeline now returns EmptyHttpResult in case of 400 BadRequest (dotnet#45073)
* Fixesdotnet#45040
When an endpoint filter is used together with a failed argument validation we now return _new ValueTask<object>(EmptyHttpResult.Instance)_ instead of _new ValueTask<object>(Task.Completed)_ to prevent Task.Completed from being serialized to the response body.
* Replaced ConstantExpression with NewExpression to not pass the constant through the generated closure parameter
Co-authored-by: Tobias Oskarsson <[email protected]>
0 commit comments