Connect middleware that overrides accept headers based on the URL path extension or query string parameter