Re: [FileAPI] readAsDataURL()

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 UTC