another way to set content-length header