remove body to string conversion. don't generate etag if body is not defined.