[svn-commits] lathama: branch 1.6.2 r305082 - /branches/1.6.2/main/http.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 31 07:52:40 CST 2011


Author: lathama
Date: Mon Jan 31 07:52:33 2011
New Revision: 305082

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305082
Log:
Asterisk HTTP response Content-type

Address content type for BSD and other platforms

(closes issue #18456)
Reported by: alexo
Patches: 
      asterisk18_http.patch uploaded by alexo (license 1175)
Tested by: alexo


Modified:
    branches/1.6.2/main/http.c

Modified: branches/1.6.2/main/http.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/http.c?view=diff&rev=305082&r1=305081&r2=305082
==============================================================================
--- branches/1.6.2/main/http.c (original)
+++ branches/1.6.2/main/http.c Mon Jan 31 07:52:33 2011
@@ -98,6 +98,7 @@
 	const char *mtype;
 } mimetypes[] = {
 	{ "png", "image/png" },
+	{ "xml", "text/xml" },
 	{ "jpg", "image/jpeg" },
 	{ "js", "application/x-javascript" },
 	{ "wav", "audio/x-wav" },
@@ -105,6 +106,13 @@
 	{ "svg", "image/svg+xml" },
 	{ "svgz", "image/svg+xml" },
 	{ "gif", "image/gif" },
+	{ "html", "text/html" },
+	{ "htm", "text/html" },
+	{ "cnf", "text/plain" },
+	{ "cfg", "text/plain" },
+	{ "bin", "application/octet-stream" },
+	{ "sbn", "application/octet-stream" },
+	{ "ld", "application/octet-stream" },
 };
 
 struct http_uri_redirect {




More information about the svn-commits mailing list