[Netsurf-develop] How to handle lying file extensions?

Darren Salt ds at youmustbejoking.demon.co.uk
Sat Apr 21 20:04:18 BST 2007


I demand that James Bursa may or may not have written...

> On Saturday 21 April 2007 12:15, Darren Salt wrote:
>> FWIW, this would be fine were its MIME type reported as image/gif;
>> however, assuming for a moment that this is so, the browser would still
>> need to cope with the misnaming in a locally-saved copy

> The file would get saved with filetype GIF, and NetSurf uses the filetype
> when loading local files, so it would still work. The name isn't
> considered.

Which is all well and good, unless you have no filetype information. Consider
Netsurf on Linux.

>> (not a cached copy, since that would still have the correct MIME type).

> There is no cache except in memory.

There you go. Cached copy. :-)

-- 
| Darren Salt    | d @ youmustbejoking,demon,co,uk | nr. Ashington, | Toon
| RISC OS, Linux | s   zap,tartarus,org            | Northumberland | Army
| + Use more efficient products. Use less.          BE MORE ENERGY EFFICIENT.

You will pass away very quickly.




More information about the netsurf-users mailing list