This repository was archived by the owner on Aug 18, 2021. It is now read-only.
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
LightController's Result method won't correctly handle "no content" results #220
Open
Description
The section about the status code 204 (no content) in RFC 7231 explicitly says that this kind of response cannot contain a message body. ASP.NET Core's Kestrel Web Server correctly validates this behavior by throwing an exception.
The method Result
from LightController
does not take this scenario into account and forcefully returns a DomainResponse
structure: