Tested using curl as described here by setting accept header:
The following do not work either:
- $ curl -H "Accept: text/xml"
- $ curl -H "Accept: application/x-xml,text/xml"
The above does not work. The following variations, however, do work:
- $ curl -H "Accept: application/x-xml" http://...
- $ curl -H "Accept: text/xml,application/xml,application/x-xml" http://...
- $ curl -H "Accept: text/xml,application/x-xml" http://...
- $ curl -H "Accept: application/xml,application/x-xml" http://...
It seems that xml-requests are detected automatically only if application/x-xml is the last value in the Accept header's list.
I suspect the problem is on row 687 in sfWebRequest