Samirla / xmlview

Powerful XML viewer for Google Chrome and Safari
MIT License
329 stars 76 forks source link

Add support for WebAPI feeds in Chrome #54

Open peter-dolkens opened 9 years ago

peter-dolkens commented 9 years ago

Send Accept header through in Chrome to ensure correct response type is returned where applicable

This forces Microsoft WebAPI feeds, and any others that obey the Accept header, to return XML as opposed to JSON, CSV, etc where available.

The header almost matches that which chrome sends by default, with the various format weightings re-arranged to give preference to XML over HTML before finally falling back to whatever format is available (.)