if (http10) {
if (cl < 0 && !sendBodyState.noBody &&
sendBody.isAppendClosed()) {
// We can generate content-lenght
cl = sendBody.available();
res.setContentLength(cl);
}
if (cl < 0 && !sendBodyState.noBody) {
closeStreamOnEnd("HTTP/1.0 without content length");
} else {