W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [FileAPI] readAsDataURL()

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 17 Feb 2011 14:36:01 -0500
Message-ID: <4D5D78A1.3010104@mit.edu>
To: Jonas Sicking <jonas@sicking.cc>
CC: Arun Ranganathan <aranganathan@mozilla.com>, David Flanagan <david@davidflanagan.com>, public-webapps@w3.org
On 2/17/11 2:00 PM, Jonas Sicking wrote:
> I think data-urls are allowed to have no content-type. Just like http
> requests can return no content-type header.

A difference is that if HTTP returns no content-type header then the 
type is sniffed, whereas a data: URI with no media-type is treated as 
text/plain.  This is specified in RFC 2397 and implemented at least in 
Opera, Gecko, Safari, and Chrome.

-Boris
Received on Thursday, 17 February 2011 19:36:39 GMT

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