Hello,
I''d want set an Accept header different from the default one:
''text/javascript, text/html, application/xml, text/xml, */*''.
Then I set in options:
{
...
requestHeaders: [''Accept'',
''text/xml;q=1,application/xml,text/javascript,text/html''],
...
}
In this way the internal requestHeaders array in Ajax.Request will have
two values for the Accept key. This works fine in mozilla/firefox
because the second one is picked.
Unfortunately in Internet Explorer the two values are merged producing
something like:
''text/javascript, text/html, application/xml, text/xml, */*,
text/xml;q=1,application/xml,text/javascript,text/html''
and this causes me some problems.
Consequently I slightly modify prototype.js setting the default Accept
header only if it isn''t in the options requestHeaders array.
This works for me but I wonder if there is a better way, especially a
way that doesn''t require to change prototype.js.
Please, could somebody give me some advice about this? Thanks in advance.
--
Nicola Piccinini -- http://superfluo.org