W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: Accept header setting in XHR

From: Peter Michaux <petermichaux@gmail.com>
Date: Tue, 13 Oct 2009 10:48:09 -0700
Message-ID: <3cbaf1c80910131048y11fd119bqa53704818fc70c6d@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: public-webapps@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:34 GMT