Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: exception logged in Kestrel on Delete request #762

Merged
merged 1 commit into from
May 22, 2020
Merged

Fixed: exception logged in Kestrel on Delete request #762

merged 1 commit into from
May 22, 2020

Conversation

bart-degreed
Copy link
Contributor

When an ActionResult returns null, we wrap that in a json:api response, causing an error from Kestrel because it does not allow a response body to be sent in some cases. See https://github.com/aspnet/KestrelHttpServer/blob/50bb0b3bc9c45e5c89617b9769959aa32e12278b/src/Kestrel.Core/Internal/Http/HttpProtocol.cs#L1270-L1275 for details.

Fixes #760.

When an ActionResult returns null, we wrap that in a json:api response, causing an error from Kestrel because it does not allow a response body to be sent in some cases. See https://github.com/aspnet/KestrelHttpServer/blob/50bb0b3bc9c45e5c89617b9769959aa32e12278b/src/Kestrel.Core/Internal/Http/HttpProtocol.cs#L1270-L1275 for details.
@bart-degreed bart-degreed merged commit 477b55d into json-api-dotnet:master May 22, 2020
@bart-degreed bart-degreed deleted the fix-kestrel-error-on-delete branch May 22, 2020 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Response content with 204 response code
1 participant