Re: setRequestHeader / Accept

Julian Reschke wrote:
> 
> Anne van Kesteren wrote:
>> ...
>>> We shouldn't let what webidl says dictate what we do one way or the 
>>> other. It's just a spec for the idl language, not a recommendation 
>>> for how interfaces should behave.
>>
>> null/undefined are not really part of the setRequestHeader() method. 
>> We just need to deal with them somehow and doing what similar APIs do 
>> in such cases makes sense.
>> ...
> 
> Such as xhr.send(null)?

Yes, xhr.send(null) will send an empty body rather than one containing 
"null".

/ Jonas

Received on Saturday, 31 May 2008 09:32:55 UTC