Improve the detection of </html> for chunked data.