private void Replay(IMockHttpResponse rsp, ITestableHttpResponse response) { rsp.SetStatusCode(response.StatusCode) .SetHeaders(response.Headers.Where(kv => !InvalidHeaders.Contains(kv.Key))); if (response.Content.ContentLength > 0) { rsp.SetContent( response.Content.Content, response.Content.ContentEncoding, response.Content.ContentType); } }