[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: lynx-dev Overriding mime types
From: |
Danny Ayers |
Subject: |
RE: lynx-dev Overriding mime types |
Date: |
Fri, 22 Mar 2002 19:37:36 +0100 |
Thanks, but this doesn't appear to make any difference - my guess is that
the mime type in the http header is taking precedence.
I tried adding :
GLOBAL_EXTENSION_MAP:/usr/share/mime.types
to lynx.cfg
and in
/usr/share/mime.types
I've got
text/html svg xml
but when I point to a file with the extension .svg (which my server's saying
is image/svg+xml) I still get the D)ownload or C)ancel options.
Any suggestions?
Cheers,
Danny.
---
Danny Ayers
<stuff> http://www.isacat.net </stuff>
>-----Original Message-----
>From: address@hidden [mailto:address@hidden Behalf Of
>Thomas Dickey
>Sent: 22 March 2002 19:15
>To: address@hidden
>Subject: Re: lynx-dev Overriding mime types
>
>
>On Fri, Mar 22, 2002 at 02:39:23PM +0100, Danny Ayers wrote:
>>
>> >who's rob partington? i know thomas dickey all right, but that guy??
>>
>> A quick search of the list archives shows a lot of posts from
>Rob Partington
>> around 1995-96 time, so I guess he was active in the development then.
>>
>> How do you override mime types?
>
>not having been down that way, I spent a few minutes and grep'd through
>the source - from src/HTInit.c where most of the MIME stuff is mapped,
>I see a pointer to something called "personal_extension_map", which
>is read from lynx.cfg:
>
>.h2 GLOBAL_EXTENSION_MAP
>.h2 PERSONAL_EXTENSION_MAP
># The global and personal EXTENSION_MAP files allow you to assign
>extensions
># to MIME types which will override any of the suffix maps in this
>(lynx.cfg)
># configuration file, or in src/HTInit.c. See the example mime.types file
># in the samples subdirectory.
>#
># Unix:
># ====
>#GLOBAL_EXTENSION_MAP:/usr/local/lib/mosaic/mime.types
># VMS:
># ===
>#GLOBAL_EXTENSION_MAP:Lynx_Dir:mime.types
>#
># Unix (sought in user's home directory):
>#PERSONAL_EXTENSION_MAP:.mime.types
># VMS (sought in user's sys$login directory):
>#PERSONAL_EXTENSION_MAP:mime.types
>
>
>--
>Thomas E. Dickey <address@hidden>
>http://invisible-island.net
>ftp://invisible-island.net
>
>; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- RE: lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, clemensF, 2002/03/22
- RE: lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- RE: lynx-dev Overriding mime types,
Danny Ayers <=
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- RE: lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- RE: lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- RE: lynx-dev Overriding mime types, Danny Ayers, 2002/03/22
- Re: lynx-dev Overriding mime types, Thomas Dickey, 2002/03/22
- Re: lynx-dev Overriding mime types, Al Gilman, 2002/03/23
- Re: lynx-dev Overriding mime types, Michael Warner, 2002/03/22