Response length not updated

If modifications changed the length of the responses, then either invalid HTML would be returned, or clients would hang waiting for the server to return the advertised amount of data.