Handle correctly the case where the content-length header is not specified