|
From: James B. <ja...@se...> - 2007-04-13 13:43:57
|
> What is the correct behaviour when no content type is returned by a > site for a page? Should the browser default to text or HTML? The HTTP specification has this: Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream". - http://www.faqs.org/rfcs/rfc2616.html 7.2.1 Content type detection will have to wait after we release 1.0. James |