Re: XMLHttpRequest.setRequestHeader with non-ASCII strings

On Fri, 31 Mar 2006 08:57:48 -0000, Cameron McCormack <cam@mcc.id.au>  
wrote:
> I asked on #webapi the other day what XHR should do if setRequestHeader
> is called with strings that contain non-ASCII characters, since that's
> not allowed by HTTP.  Anne suggested I make a test, so here is one
> (temporarily, at least):

Thanks for this. We decided that it would make the most sense to throw an  
exception (SYNTAX_ERR) if the header or value doesn't match the production  
given in HTTP. This is the same for getResponserHeader, obviously...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Wednesday, 20 September 2006 11:07:59 UTC