[whatwg] [mimesniff] Sniffing archives

Henri Sivonen hsivonen at iki.fi
Tue Dec 4 00:12:42 PST 2012


On Tue, Dec 4, 2012 at 9:40 AM, Adam Barth <w3c at adambarth.com> wrote:
> Also, some user agents treat downloads of
> ZIP archives differently than other sorts of download (e.g., they
> might offer to unzip them).

Which user agents? For this use case, merely sniffing for the zip
magic number is inadequate, because you really don’t want to offer to
unzip EPUB, ODF, OOXML, XPS, InDesign, etc. files.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/



More information about the whatwg mailing list