Exemplo n.º 1
0
 protected static void SetResponseHeaders(int statusCode, string reasonPhrase, IHttpHeaders headers,
                                          IOwinResponse response, params string[] except)
 {
     response.StatusCode = statusCode;
     if (!string.IsNullOrEmpty(reasonPhrase))
         response.ReasonPhrase = reasonPhrase;
     headers.CopyTo(response.Headers, except);
 }