W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [XHR] XMLHttpRequest.send("")

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 10 Apr 2012 17:37:12 -0500
Message-ID: <CABirCh8ygB_VUe0iXTJhUrtACEcbbCQ0kwr1yLY7fYb__t4s1w@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: public-webapps@w3.org
On Tue, Apr 10, 2012 at 5:21 PM, Anne van Kesteren <annevk@opera.com> wrote:

> On Wed, 11 Apr 2012 00:08:47 +0200, Jonas Sicking <jonas@sicking.cc>
> wrote:
>
>> Is this intentional?
>>
>> This does match what Gecko does, but we are willing to change this if
>> others agree that it's a better behavior.
>>
>
> Yes, the idea is that you can transmit both the empty entity body and no
> entity body. The former will also have a Content-Length header set. Whether
> it is useful to have both...
>

I'd find it very surprising if send(getSomeString()) resulted in a
different Content-Type depending on the length of the string.  A
zero-length string is still a string.

-- 
Glenn Maynard
Received on Tuesday, 10 April 2012 22:37:41 GMT

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