[asterisk-dev] Request for new MIME type in asterisk webserver

Steven Critchfield critch at basesys.com
Wed Mar 21 11:49:34 MST 2007


On Wed, 2007-03-21 at 16:45 +0000, Tim Panton wrote:
> On 21 Mar 2007, at 14:59, Pari Nannapaneni wrote:
> 
> > Hi all,
> > Can some one please add the following mime type in asterisk webserver.
> >
> > http.c
> > -------
> >   mimetypes[] = {
> >         { "png", "image/png" },
> >         { "jpg", "image/jpeg" },
> >         { "js", "application/x-javascript" },
> >         { "wav", "audio/x-wav" },
> >         { "mp3", "audio/mpeg" },
> > +        { "svg", "image/svg+xml" },
> and
> 	{"jar","application/java-archive"}

mmm, Wouldn't all this be better served by using the mime information
that should be installed on your system already?

Maybe that should be the proper feature request. Read and properly parse
the /etc/mime.types file. This way feature adds do not require code
changes.
-- 
Steven Critchfield <critch at basesys.com>



More information about the asterisk-dev mailing list