add support for processing the content-length header when transfer is not chunked