[jQuery] setRequestHeader("Accept", text/xml") - problem with

[jQuery] setRequestHeader("Accept", text/xml") - problem with


My server expects the dataType as text/xml. This is the code I use to
set the the type.
$(function() {
$.ajax({
type: "GET",
url: location.href,
dataType: "xml",
beforeSend : function(req) {
req.setRequestHeader("Accept", "text/xml");
},
success: function(xml) {
alert("success=" + xml.responseText);
},
complete: function(xml) {
alert("complete=" + xml.responseText);
},
failure: function(xml) {
alert("in failure");
}
});
});
When I set Accept to "text/xml" or "xml" I see on the line going to
the server that the Accept contains three types text/xml, application/
xml and application/xhtml+xml. My server expects only text/xml. How
can I force it to be just text/xml.
Thanks,
Alex.