add option to disable sending content-length header