Set content-length header