Allow 304 responses with a Content-Length but no body #5878
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
bug
This issue describes a behavior which is not expected - a bug.
feature-httpsys
help wanted
Up for grabs. We would accept a PR to help resolve this issue
(Mirrored from aspnet/KestrelHttpServer#2099)
304 Not Modified responses are not allowed to contain a body, but they may still contain an informative Content-Length header similar to a Head response.
https://tools.ietf.org/html/rfc7230#section-3.3.2
MVC started doing this in 2.0 and running into the
Response Content-Length mismatch: too few bytes written (0 of 42).
error.aspnet/Mvc#6875
They've patched it for 2.0.1
aspnet/Mvc#6887
The text was updated successfully, but these errors were encountered: