The comment on mime type array in code says:<br><br>"Limit the kinds of files we're willing to serve up"<br><br>So I believe the intention is that, well, its supposed to limit the kinds of files that Asterisk will serve up :)
<br><br><div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">Steven Critchfield</b> <<a href="mailto:critch@basesys.com">critch@basesys.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2007-03-21 at 16:45 +0000, Tim Panton wrote:<br>> On 21 Mar 2007, at 14:59, Pari Nannapaneni wrote:<br>><br>> > Hi all,<br>> > Can some one please add the following mime type in asterisk webserver.
<br>> ><br>> > http.c<br>> > -------<br>> > mimetypes[] = {<br>> > { "png", "image/png" },<br>> > { "jpg", "image/jpeg" },<br>> > { "js", "application/x-javascript" },
<br>> > { "wav", "audio/x-wav" },<br>> > { "mp3", "audio/mpeg" },<br>> > + { "svg", "image/svg+xml" },<br>> and<br>> {"jar","application/java-archive"}
<br><br>mmm, Wouldn't all this be better served by using the mime information<br>that should be installed on your system already?<br><br>Maybe that should be the proper feature request. Read and properly parse<br>the /etc/mime.types file. This way feature adds do not require code
<br>changes.<br>--<br>Steven Critchfield <<a href="mailto:critch@basesys.com">critch@basesys.com</a>><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a>
<br></blockquote></div><br><br clear="all"><br>-- <br>sean