Skip to content

Conversation

@mitchdenny
Copy link
Member

Partially addresses #47345

@mitchdenny mitchdenny requested a review from BrennanConroy June 6, 2023 02:47
}
httpContext.Response.ContentType ??= "text/plain";
var result = handler(svc_local);
if (result is string)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, feels like we can do this in the same place where we write the response (as in the ExecuteReturnAsync handlers referenced above) instead of duplicating the check for hte result.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be misunderstanding. If we don't have any filters we don't use ExecuteObjectResult unless I'm misreading the code.

@amcasey amcasey added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-runtime labels Jun 6, 2023
@mitchdenny mitchdenny merged commit 68545a0 into dotnet:main Jun 9, 2023
@ghost ghost added this to the 8.0-preview6 milestone Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants