set content-length to avoid chunked encoding