Rack middleware to strip HTTP accept headers
Strips HTTP_ACCEPT headers for all non XML HTTP requests
HTTP accept headers are generally implemented in such a broken way in the wild, see http://www.gethifi.com/blog/browser-rest-http-accept-headers that unless you really need them it is best to ignore them.
- Why keep the HTTP accept headers for XML HTTP requests?
- I want to turn off content negotiation entirely?
If you are using Rails v3.1 or greater and you want to turn off content negotiation entirely with
```ActionDispatch::Request.ignore_accept_header = true```
Once you have done this HTTP accept header values will be ignored.