Skip to content
Discussion options

You must be logged in to vote

I would say this is a bug and a misuse.

It's a bug because the framework shouldn't be trying to write null to the response, it should probably just write nothing. Otherwise it hits the guard here that the method needs the text to have a value:

I would say it's a misuse because there's no way to write null to a raw text/plain HTTP response. null would just semantically be the literal characters n u l l because the response is just text.

I'm not sure what the fix for the bug would be - either to throw an explicit exception for th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RichardD2
Comment options

@RichardD2
Comment options

Answer selected by RichardD2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
2 participants