Remove transfer-encoding chunked and connection-close when response code is 204/304.