Re: Recent spec change to XMLHttpRequest default Content-Type

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