Minimal APIs: Moving handler with single parameter of type HttpContext
to separate method results in empty response
#39956
Labels
bug
This issue describes a behavior which is not expected - a bug.
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Is there an existing issue for this?
Describe the bug
Moving Minimal APIs handler with single param of type
HttpContext
results in empty response.Endpoints named
Fails
return empty result (chrome, postman, no Content-Type) while others result inresponse
(Content-Type: text/plain; charset=utf-8")Expected Behavior
All returns the same -
response
.Steps To Reproduce
Run the app in the description and call endpoints.
Exceptions (if any)
No response
.NET Version
6.0.101
Anything else?
.NET SDK (reflecting any global.json):
Version: 6.0.101
Commit: ef49f6213a
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.101\
The text was updated successfully, but these errors were encountered: