Re: Accept header setting in XHR

On Thu, Oct 8, 2009 at 7:37 AM, Anne van Kesteren <annevk@opera.com> wrote:
> On Tue, 25 Aug 2009 19:06:27 +0200, Peter Michaux <petermichaux@gmail.com>
> wrote:
>>
>> I am looking at the current Working Draft of the XHR spec at the end
>> of section 4.6.3
>>
>> http://www.w3.org/TR/XMLHttpRequest/#the-send-method
>>
>> "Unless set through setRequestHeader() user agents should set the
>> Accept and Accept-Language headers as well."
>>
>> This doesn't specify what the user agent should/must do in the case
>> where the Accept header is set through setRequestHeader(). In my
>> opinion something like the following would be better.
>>
>> "If Accept is set through setRequestHeader(), user agents must not
>> set, append or otherwise modify the Accept header. If the Accept
>> header is not set thorugh setRequestHeader(), user agents should set
>> the Accept header. Same for the Accept-Language header."
>>
>> I think avoiding the word "Unless" would also be an improvement as it
>> is clearer to just use "If".
>
> Fixed (in a somewhat different way). Thanks!

It seems as though the new version is not posted. Is there somewhere I
can see the changed text?

Thanks,
Peter

Received on Tuesday, 13 October 2009 17:48:42 UTC