set content-length header