Skip to content

Instantly share code, notes, and snippets.

View lukemcgregor's full-sized avatar

Luke McGregor lukemcgregor

  • Company-X
  • New Zealand
View GitHub Profile
/// <summary>
/// Based on code from:
/// http://pedroreys.com/2012/02/17/extending-asp-net-web-api-content-negotiation/
/// </summary>
public class NotAcceptableConnegHandler : DelegatingHandler {
private readonly HttpConfiguration _configuration;
public NotAcceptableConnegHandler(HttpConfiguration configuration) {
if (configuration == null) {