selectively send contentLength, if defined in response