Skip to content

Conversation

@peter-dolkens
Copy link

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 (.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant