W3C home > Mailing lists > Public > public-webapi@w3.org > June 2007

Re: Recent spec change to XMLHttpRequest default Content-Type

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 15 Jun 2007 10:06:05 +0200
Message-ID: <4672486D.70902@gmx.de>
To: Carsten Orthbandt <carsten@pixeltamer.net>
CC: "Web API WG (public)" <public-webapi@w3.org>

Carsten Orthbandt wrote:
> ...
> My wording here was probably unclear. My intent is not to have the spec
> define how or when an UA should report errors. I'd like the spec to define
> what is an actual error in the processing and what are merely different
> execution paths of the algorithms laid out.
> Having a XML Content-Type but non-well-formed content would constitute an
> error. Not having XML content when it wasn't specified as XML in the first
> place would not be an error.

I have to agree here. If a recipient decides to do content-type 
guessing, the fact that the type is not what was tested is not an error. 
One more reason not to guess in the first place.

However, IMHO the right thing to do here is to attach a proper 
content-type header in the first place.

> ...

Best regards, Julian
Received on Friday, 15 June 2007 08:06:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC