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

Re: Accept header setting in XHR

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 08 Oct 2009 16:37:42 +0200
To: "Peter Michaux" <petermichaux@gmail.com>, public-webapps@w3.org
Message-ID: <op.u1hj84m964w2qv@annevk-t60>
On Tue, 25 Aug 2009 19:06:27 +0200, Peter Michaux <petermichaux@gmail.com>  
> 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!

Anne van Kesteren
Received on Thursday, 8 October 2009 14:38:18 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:20 UTC