After some recent changes in Spring MVC (7.0.6) Tomcat will write the content-length header for us if we write a response body that fits in its output stream buffer. The default size is 8192 bytes, which is completely arbitrary, and some applications (where they often return JSON results slightly larger than that, for instance) would benefit from being able to change the value.
Jetty behaves the same way, and it probably has the same opportunity to configure the buffer size.