if (getContentLength() != -1) {
return false;
}
// if less than HTTP/1.1 response, accept-encoding
// chunked must be present
AcceptHeader ae = req._getAcceptEncoding("chunked");
if (major < 1 || (major == 1 && minor < 1)) {
// if chunked encoding has been specified and is accepted, yes
return (ae != null && ae.getQuality() > 0.0);
} else {
// check if chunked encoding is explicitly declined
return !(ae != null && ae.getQuality() == 0.0);
}
}